Lines Matching refs:idx
15 // unsigned long long stoull(const string& str, size_t *idx = 0, int base = 10);
16 // unsigned long long stoull(const wstring& str, size_t *idx = 0, int base = 10);
29 size_t idx = 0;
30 assert(std::stoull("10g", &idx, 16) == 16);
31 assert(idx == 2);
32 idx = 0;
33 assert(std::stoull(L"10g", &idx, 16) == 16);
34 assert(idx == 2);
35 idx = 0;
38 std::stoull("", &idx);
43 assert(idx == 0);
45 idx = 0;
48 std::stoull(L"", &idx);
53 assert(idx == 0);
57 std::stoull(" - 8", &idx);
62 assert(idx == 0);
66 std::stoull(L" - 8", &idx);
71 assert(idx == 0);
75 std::stoull("a1", &idx);
80 assert(idx == 0);
84 std::stoull(L"a1", &idx);
89 assert(idx == 0);
94 std::stoull("9999999999999999999999999999999999999999999999999", &idx);
99 assert(idx == 0);
103 std::stoull(L"9999999999999999999999999999999999999999999999999", &idx);
108 assert(idx == 0);