Lines Matching defs:base

69 inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) {
74 V r = f(p, &ptr, base);
86 inline V as_integer(const string& func, const S& s, size_t* idx, int base);
90 inline int as_integer(const string& func, const string& s, size_t* idx, int base) {
92 long r = as_integer_helper<long>(func, s, idx, base, strtol);
99 inline long as_integer(const string& func, const string& s, size_t* idx, int base) {
100 return as_integer_helper<long>(func, s, idx, base, strtol);
104 inline unsigned long as_integer(const string& func, const string& s, size_t* idx, int base) {
105 return as_integer_helper<unsigned long>(func, s, idx, base, strtoul);
109 inline long long as_integer(const string& func, const string& s, size_t* idx, int base) {
110 return as_integer_helper<long long>(func, s, idx, base, strtoll);
114 inline unsigned long long as_integer(const string& func, const string& s, size_t* idx, int base) {
115 return as_integer_helper<unsigned long long>(func, s, idx, base, strtoull);
121 inline int as_integer(const string& func, const wstring& s, size_t* idx, int base) {
123 long r = as_integer_helper<long>(func, s, idx, base, wcstol);
130 inline long as_integer(const string& func, const wstring& s, size_t* idx, int base) {
131 return as_integer_helper<long>(func, s, idx, base, wcstol);
135 inline unsigned long as_integer(const string& func, const wstring& s, size_t* idx, int base) {
136 return as_integer_helper<unsigned long>(func, s, idx, base, wcstoul);
140 inline long long as_integer(const string& func, const wstring& s, size_t* idx, int base) {
141 return as_integer_helper<long long>(func, s, idx, base, wcstoll);
145 inline unsigned long long as_integer(const string& func, const wstring& s, size_t* idx, int base) {
146 return as_integer_helper<unsigned long long>(func, s, idx, base, wcstoull);
206 int stoi(const string& str, size_t* idx, int base) { return as_integer<int>("stoi", str, idx, base); }
208 long stol(const string& str, size_t* idx, int base) { return as_integer<long>("stol", str, idx, base); }
210 unsigned long stoul(const string& str, size_t* idx, int base) {
211 return as_integer<unsigned long>("stoul", str, idx, base);
214 long long stoll(const string& str, size_t* idx, int base) { return as_integer<long long>("stoll", str, idx, base); }
216 unsigned long long stoull(const string& str, size_t* idx, int base) {
217 return as_integer<unsigned long long>("stoull", str, idx, base);
227 int stoi(const wstring& str, size_t* idx, int base) { return as_integer<int>("stoi", str, idx, base); }
229 long stol(const wstring& str, size_t* idx, int base) { return as_integer<long>("stol", str, idx, base); }
231 unsigned long stoul(const wstring& str, size_t* idx, int base) {
232 return as_integer<unsigned long>("stoul", str, idx, base);
235 long long stoll(const wstring& str, size_t* idx, int base) { return as_integer<long long>("stoll", str, idx, base); }
237 unsigned long long stoull(const wstring& str, size_t* idx, int base) {
238 return as_integer<unsigned long long>("stoull", str, idx, base);