Home | History | Annotate | Download | only in string.conversions

Lines Matching refs:idx

16 // unsigned long long stoull(const string& str, size_t *idx = 0, int base = 10);
17 // unsigned long long stoull(const wstring& str, size_t *idx = 0, int base = 10);
32 size_t idx = 0;
33 assert(std::stoull("10g", &idx, 16) == 16);
34 assert(idx == 2);
35 idx = 0;
36 assert(std::stoull(L"10g", &idx, 16) == 16);
37 assert(idx == 2);
39 idx = 0;
42 std::stoull("", &idx);
47 assert(idx == 0);
49 idx = 0;
52 std::stoull(L"", &idx);
57 assert(idx == 0);
61 std::stoull(" - 8", &idx);
66 assert(idx == 0);
70 std::stoull(L" - 8", &idx);
75 assert(idx == 0);
79 std::stoull("a1", &idx);
84 assert(idx == 0);
88 std::stoull(L"a1", &idx);
93 assert(idx == 0);
98 std::stoull("9999999999999999999999999999999999999999999999999", &idx);
103 assert(idx == 0);
107 std::stoull(L"9999999999999999999999999999999999999999999999999", &idx);
112 assert(idx == 0);