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

Lines Matching refs:idx

15 // long stol(const string& str, size_t *idx = 0, int base = 10);
16 // long stol(const wstring& str, size_t *idx = 0, int base = 10);
31 size_t idx = 0;
32 assert(std::stol("10g", &idx, 16) == 16);
33 assert(idx == 2);
34 idx = 0;
35 assert(std::stol(L"10g", &idx, 16) == 16);
36 assert(idx == 2);
37 idx = 0;
40 std::stol("", &idx);
45 assert(idx == 0);
49 std::stol(L"", &idx);
54 assert(idx == 0);
58 std::stol(" - 8", &idx);
63 assert(idx == 0);
67 std::stol(L" - 8", &idx);
72 assert(idx == 0);
76 std::stol("a1", &idx);
81 assert(idx == 0);
85 std::stol(L"a1", &idx);
90 assert(idx == 0);
95 std::stol("9999999999999999999999999999999999999999999999999", &idx);
100 assert(idx == 0);
104 std::stol(L"9999999999999999999999999999999999999999999999999", &idx);
109 assert(idx == 0);