Lines Matching refs:func
48 void throw_from_string_out_of_range( const string& func ) in throw_from_string_out_of_range() argument
50 throw_helper<out_of_range>(func + ": out of range"); in throw_from_string_out_of_range()
54 void throw_from_string_invalid_arg( const string& func ) in throw_from_string_invalid_arg() argument
56 throw_helper<invalid_argument>(func + ": no conversion"); in throw_from_string_invalid_arg()
64 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper() argument
73 throw_from_string_out_of_range(func); in as_integer_helper()
75 throw_from_string_invalid_arg(func); in as_integer_helper()
84 as_integer(const string& func, const S& s, size_t* idx, int base);
90 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
93 long r = as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
95 throw_from_string_out_of_range(func); in as_integer()
102 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
104 return as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
110 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
112 return as_integer_helper<unsigned long>( func, s, idx, base, strtoul ); in as_integer()
118 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
120 return as_integer_helper<long long>( func, s, idx, base, strtoll ); in as_integer()
126 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
128 return as_integer_helper<unsigned long long>( func, s, idx, base, strtoull ); in as_integer()
135 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
138 long r = as_integer_helper<long>( func, s, idx, base, wcstol ); in as_integer()
140 throw_from_string_out_of_range(func); in as_integer()
147 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
149 return as_integer_helper<long>( func, s, idx, base, wcstol ); in as_integer()
155 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
157 return as_integer_helper<unsigned long>( func, s, idx, base, wcstoul ); in as_integer()
163 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
165 return as_integer_helper<long long>( func, s, idx, base, wcstoll ); in as_integer()
171 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
173 return as_integer_helper<unsigned long long>( func, s, idx, base, wcstoull ); in as_integer()
181 as_float_helper(const string& func, const S& str, size_t* idx, F f ) in as_float_helper() argument
190 throw_from_string_out_of_range(func); in as_float_helper()
192 throw_from_string_invalid_arg(func); in as_float_helper()
200 V as_float( const string& func, const S& s, size_t* idx = nullptr );
205 as_float( const string& func, const string& s, size_t* idx ) in as_float() argument
207 return as_float_helper<float>( func, s, idx, strtof ); in as_float()
213 as_float(const string& func, const string& s, size_t* idx ) in as_float() argument
215 return as_float_helper<double>( func, s, idx, strtod ); in as_float()
221 as_float( const string& func, const string& s, size_t* idx ) in as_float() argument
223 return as_float_helper<long double>( func, s, idx, strtold ); in as_float()
229 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
231 return as_float_helper<float>( func, s, idx, wcstof ); in as_float()
237 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
239 return as_float_helper<double>( func, s, idx, wcstod ); in as_float()
245 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
247 return as_float_helper<long double>( func, s, idx, wcstold ); in as_float()