Lines Matching refs:idx

66 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f)
78 if (idx)
79 *idx = static_cast<size_t>(ptr - p);
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 );
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 );
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 )
195 if (idx)
196 *idx = static_cast<size_t>(ptr - p);
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, strtod );
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, wcstod );
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 );
255 stoi(const string& str, size_t* idx, int base)
257 return as_integer<int>( "stoi", str, idx, base );
261 stoi(const wstring& str, size_t* idx, int base)
263 return as_integer<int>( "stoi", str, idx, base );
267 stol(const string& str, size_t* idx, int base)
269 return as_integer<long>( "stol", str, idx, base );
273 stol(const wstring& str, size_t* idx, int base)
275 return as_integer<long>( "stol", str, idx, base );
279 stoul(const string& str, size_t* idx, int base)
281 return as_integer<unsigned long>( "stoul", str, idx, base );
285 stoul(const wstring& str, size_t* idx, int base)
287 return as_integer<unsigned long>( "stoul", str, idx, base );
291 stoll(const string& str, size_t* idx, int base)
293 return as_integer<long long>( "stoll", str, idx, base );
297 stoll(const wstring& str, size_t* idx, int base)
299 return as_integer<long long>( "stoll", str, idx, base );
303 stoull(const string& str, size_t* idx, int base)
305 return as_integer<unsigned long long>( "stoull", str, idx, base );
309 stoull(const wstring& str, size_t* idx, int base)
311 return as_integer<unsigned long long>( "stoull", str, idx, base );
315 stof(const string& str, size_t* idx)
317 return as_float<float>( "stof", str, idx );
321 stof(const wstring& str, size_t* idx)
323 return as_float<float>( "stof", str, idx );
327 stod(const string& str, size_t* idx)
329 return as_float<double>( "stod", str, idx );
333 stod(const wstring& str, size_t* idx)
335 return as_float<double>( "stod", str, idx );
339 stold(const string& str, size_t* idx)
341 return as_float<long double>( "stold", str, idx );
345 stold(const wstring& str, size_t* idx)
347 return as_float<long double>( "stold", str, idx );