Lines Matching refs:func

45 void throw_from_string_out_of_range( const string& func )  in throw_from_string_out_of_range()  argument
47 throw_helper<out_of_range>(func + ": out of range"); in throw_from_string_out_of_range()
51 void throw_from_string_invalid_arg( const string& func ) in throw_from_string_invalid_arg() argument
53 throw_helper<invalid_argument>(func + ": no conversion"); in throw_from_string_invalid_arg()
61 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper() argument
70 throw_from_string_out_of_range(func); in as_integer_helper()
72 throw_from_string_invalid_arg(func); in as_integer_helper()
81 as_integer(const string& func, const S& s, size_t* idx, int base);
87 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
90 long r = as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
92 throw_from_string_out_of_range(func); in as_integer()
99 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
101 return as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
107 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
109 return as_integer_helper<unsigned long>( func, s, idx, base, strtoul ); in as_integer()
115 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
117 return as_integer_helper<long long>( func, s, idx, base, strtoll ); in as_integer()
123 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
125 return as_integer_helper<unsigned long long>( func, s, idx, base, strtoull ); in as_integer()
132 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
135 long r = as_integer_helper<long>( func, s, idx, base, wcstol ); in as_integer()
137 throw_from_string_out_of_range(func); in as_integer()
144 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
146 return as_integer_helper<long>( func, s, idx, base, wcstol ); in as_integer()
152 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
154 return as_integer_helper<unsigned long>( func, s, idx, base, wcstoul ); in as_integer()
160 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
162 return as_integer_helper<long long>( func, s, idx, base, wcstoll ); in as_integer()
168 as_integer( const string& func, const wstring& s, size_t* idx, int base ) in as_integer() argument
170 return as_integer_helper<unsigned long long>( func, s, idx, base, wcstoull ); in as_integer()
178 as_float_helper(const string& func, const S& str, size_t* idx, F f ) in as_float_helper() argument
187 throw_from_string_out_of_range(func); in as_float_helper()
189 throw_from_string_invalid_arg(func); in as_float_helper()
197 V as_float( const string& func, const S& s, size_t* idx = nullptr );
202 as_float( const string& func, const string& s, size_t* idx ) in as_float() argument
204 return as_float_helper<float>( func, s, idx, strtof ); in as_float()
210 as_float(const string& func, const string& s, size_t* idx ) in as_float() argument
212 return as_float_helper<double>( func, s, idx, strtod ); in as_float()
218 as_float( const string& func, const string& s, size_t* idx ) in as_float() argument
220 return as_float_helper<long double>( func, s, idx, strtold ); in as_float()
226 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
228 return as_float_helper<float>( func, s, idx, wcstof ); in as_float()
234 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
236 return as_float_helper<double>( func, s, idx, wcstod ); in as_float()
242 as_float( const string& func, const wstring& s, size_t* idx ) in as_float() argument
244 return as_float_helper<long double>( func, s, idx, wcstold ); in as_float()