Lines Matching refs:func

50 void throw_from_string_out_of_range( const string& func )
52 throw_helper<out_of_range>(func + ": out of range");
56 void throw_from_string_invalid_arg( const string& func )
58 throw_helper<invalid_argument>(func + ": no conversion");
66 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f)
75 throw_from_string_out_of_range(func);
77 throw_from_string_invalid_arg(func);
86 as_integer(const string& func, const S& s, size_t* idx, int base);
92 as_integer(const string& func, const string& s, size_t* idx, int base )
95 long r = as_integer_helper<long>( func, s, idx, base, strtol );
97 throw_from_string_out_of_range(func);
104 as_integer(const string& func, const string& s, size_t* idx, int base )
106 return as_integer_helper<long>( func, s, idx, base, strtol );
112 as_integer( const string& func, const string& s, size_t* idx, int base )
114 return as_integer_helper<unsigned long>( func, s, idx, base, strtoul );
120 as_integer( const string& func, const string& s, size_t* idx, int base )
122 return as_integer_helper<long long>( func, s, idx, base, strtoll );
128 as_integer( const string& func, const string& s, size_t* idx, int base )
130 return as_integer_helper<unsigned long long>( func, s, idx, base, strtoull );
137 as_integer( const string& func, const wstring& s, size_t* idx, int base )
140 long r = as_integer_helper<long>( func, s, idx, base, wcstol );
142 throw_from_string_out_of_range(func);
149 as_integer( const string& func, const wstring& s, size_t* idx, int base )
151 return as_integer_helper<long>( func, s, idx, base, wcstol );
157 as_integer( const string& func, const wstring& s, size_t* idx, int base )
159 return as_integer_helper<unsigned long>( func, s, idx, base, wcstoul );
165 as_integer( const string& func, const wstring& s, size_t* idx, int base )
167 return as_integer_helper<long long>( func, s, idx, base, wcstoll );
173 as_integer( const string& func, const wstring& s, size_t* idx, int base )
175 return as_integer_helper<unsigned long long>( func, s, idx, base, wcstoull );
183 as_float_helper(const string& func, const S& str, size_t* idx, F f )
192 throw_from_string_out_of_range(func);
194 throw_from_string_invalid_arg(func);
202 V as_float( const string& func, const S& s, size_t* idx = nullptr );
207 as_float( const string& func, const string& s, size_t* idx )
209 return as_float_helper<float>( func, s, idx, strtof );
215 as_float(const string& func, const string& s, size_t* idx )
217 return as_float_helper<double>( func, s, idx, strtod );
223 as_float( const string& func, const string& s, size_t* idx )
225 return as_float_helper<long double>( func, s, idx, strtold );
231 as_float( const string& func, const wstring& s, size_t* idx )
233 return as_float_helper<float>( func, s, idx, wcstof );
239 as_float( const string& func, const wstring& s, size_t* idx )
241 return as_float_helper<double>( func, s, idx, wcstod );
247 as_float( const string& func, const wstring& s, size_t* idx )
249 return as_float_helper<long double>( func, s, idx, wcstold );