Lines Matching refs:func
51 void throw_from_string_out_of_range( const string& func ) in throw_from_string_out_of_range() argument
53 throw_helper<out_of_range>(func + ": out of range"); in throw_from_string_out_of_range()
57 void throw_from_string_invalid_arg( const string& func ) in throw_from_string_invalid_arg() argument
59 throw_helper<invalid_argument>(func + ": no conversion"); in throw_from_string_invalid_arg()
67 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper() argument
76 throw_from_string_out_of_range(func); in as_integer_helper()
78 throw_from_string_invalid_arg(func); in as_integer_helper()
87 as_integer(const string& func, const S& s, size_t* idx, int base);
93 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
96 long r = as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
98 throw_from_string_out_of_range(func); in as_integer()
105 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
107 return as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
113 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
115 return as_integer_helper<unsigned long>( func, s, idx, base, strtoul ); in as_integer()
121 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
123 return as_integer_helper<long long>( func, s, idx, base, strtoll ); in as_integer()
129 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
131 return as_integer_helper<unsigned long long>( func, s, idx, base, strtoull ); in as_integer()
138 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
141 long r = as_integer_helper<long>( func, s, idx, base, wcstol ); in as_integer()
143 throw_from_string_out_of_range(func); in as_integer()
150 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
152 return as_integer_helper<long>( func, s, idx, base, wcstol ); in as_integer()
158 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
160 return as_integer_helper<unsigned long>( func, s, idx, base, wcstoul ); in as_integer()
166 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
168 return as_integer_helper<long long>( func, s, idx, base, wcstoll ); in as_integer()
174 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
176 return as_integer_helper<unsigned long long>( func, s, idx, base, wcstoull ); in as_integer()
184 as_float_helper(const string& func, const S& str, size_t* idx, F f ) in as_float_helper() argument
193 throw_from_string_out_of_range(func); in as_float_helper()
195 throw_from_string_invalid_arg(func); in as_float_helper()
203 V as_float( const string& func, const S& s, size_t* idx = nullptr );
208 as_float( const string& func, const string& s, size_t* idx ) in as_float() argument
210 return as_float_helper<float>( func, s, idx, strtof ); in as_float()
216 as_float(const string& func, const string& s, size_t* idx ) in as_float() argument
218 return as_float_helper<double>( func, s, idx, strtod ); in as_float()
224 as_float( const string& func, const string& s, size_t* idx ) in as_float() argument
226 return as_float_helper<long double>( func, s, idx, strtold ); in as_float()
232 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
234 return as_float_helper<float>( func, s, idx, wcstof ); in as_float()
240 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
242 return as_float_helper<double>( func, s, idx, wcstod ); in as_float()
248 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
250 return as_float_helper<long double>( func, s, idx, wcstold ); in as_float()