Lines Matching refs:func
74 inline void throw_from_string_out_of_range(const string& func) { in throw_from_string_out_of_range() argument
75 throw_helper<out_of_range>(func + ": out of range"); in throw_from_string_out_of_range()
78 inline void throw_from_string_invalid_arg(const string& func) { in throw_from_string_invalid_arg() argument
79 throw_helper<invalid_argument>(func + ": no conversion"); in throw_from_string_invalid_arg()
85 inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) { in as_integer_helper() argument
93 throw_from_string_out_of_range(func); in as_integer_helper()
95 throw_from_string_invalid_arg(func); in as_integer_helper()
102 inline V as_integer(const string& func, const S& s, size_t* idx, int base);
106 inline int as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument
108 long r = as_integer_helper<long>(func, s, idx, base, strtol); in as_integer()
110 throw_from_string_out_of_range(func); in as_integer()
115 inline long as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument
116 return as_integer_helper<long>(func, s, idx, base, strtol); in as_integer()
120 inline unsigned long as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument
121 return as_integer_helper<unsigned long>(func, s, idx, base, strtoul); in as_integer()
125 inline long long as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument
126 return as_integer_helper<long long>(func, s, idx, base, strtoll); in as_integer()
130 inline unsigned long long 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()
137 inline int as_integer(const string& func, const wstring& s, size_t* idx, int base) { in as_integer() argument
139 long r = as_integer_helper<long>(func, s, idx, base, wcstol); in as_integer()
141 throw_from_string_out_of_range(func); in as_integer()
146 inline long as_integer(const string& func, const wstring& s, size_t* idx, int base) { in as_integer() argument
147 return as_integer_helper<long>(func, s, idx, base, wcstol); in as_integer()
153 as_integer(const string& func, const wstring& s, size_t* idx, int base) in as_integer() argument
155 return as_integer_helper<unsigned long>(func, s, idx, base, wcstoul); in as_integer()
159 inline long long as_integer(const string& func, const wstring& s, size_t* idx, int base) { in as_integer() argument
160 return as_integer_helper<long long>(func, s, idx, base, wcstoll); in as_integer()
164 inline unsigned long long as_integer(const string& func, const wstring& s, size_t* idx, int base) { in as_integer() argument
165 return as_integer_helper<unsigned long long>(func, s, idx, base, wcstoull); in as_integer()
172 inline V as_float_helper(const string& func, const S& str, size_t* idx, F f) { in as_float_helper() argument
180 throw_from_string_out_of_range(func); in as_float_helper()
182 throw_from_string_invalid_arg(func); in as_float_helper()
189 inline V as_float(const string& func, const S& s, size_t* idx = nullptr);
192 inline float as_float(const string& func, const string& s, size_t* idx) { in as_float() argument
193 return as_float_helper<float>(func, s, idx, strtof); in as_float()
197 inline double as_float(const string& func, const string& s, size_t* idx) { in as_float() argument
198 return as_float_helper<double>(func, s, idx, strtod); in as_float()
202 inline long double as_float(const string& func, const string& s, size_t* idx) { in as_float() argument
203 return as_float_helper<long double>(func, s, idx, strtold); in as_float()
208 inline float as_float(const string& func, const wstring& s, size_t* idx) { in as_float() argument
209 return as_float_helper<float>(func, s, idx, wcstof); in as_float()
213 inline double as_float(const string& func, const wstring& s, size_t* idx) { in as_float() argument
214 return as_float_helper<double>(func, s, idx, wcstod); in as_float()
218 inline long double as_float(const string& func, const wstring& s, size_t* idx) { in as_float() argument
219 return as_float_helper<long double>(func, s, idx, wcstold); in as_float()