Home
last modified time | relevance | path

Searched refs:stoul (Results 1 – 21 of 21) sorted by relevance

/external/libcxx/test/std/strings/string.conversions/
Dstoul.pass.cpp27 assert(std::stoul("0") == 0); in main()
28 assert(std::stoul(L"0") == 0); in main()
29 assert(std::stoul("-0") == 0); in main()
30 assert(std::stoul(L"-0") == 0); in main()
31 assert(std::stoul(" 10") == 10); in main()
32 assert(std::stoul(L" 10") == 10); in main()
34 assert(std::stoul("10g", &idx, 16) == 16); in main()
37 assert(std::stoul(L"10g", &idx, 16) == 16); in main()
43 std::stoul("", &idx); in main()
52 std::stoul(L"", &idx); in main()
[all …]
/external/google-benchmark/test/
Dstring_util_gtest.cc9 TEST(StringUtilTest, stoul) { in TEST() argument
12 EXPECT_EQ(0ul, benchmark::stoul("0", &pos)); in TEST()
17 EXPECT_EQ(7ul, benchmark::stoul("7", &pos)); in TEST()
22 EXPECT_EQ(135ul, benchmark::stoul("135", &pos)); in TEST()
28 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos)); in TEST()
34 EXPECT_EQ(0xFFFFFFFFFFFFFFFFul, benchmark::stoul("18446744073709551615", &pos)); in TEST()
40 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2)); in TEST()
45 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8)); in TEST()
50 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10)); in TEST()
55 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16)); in TEST()
[all …]
/external/libcxx/utils/google-benchmark/test/
Dstring_util_gtest.cc9 TEST(StringUtilTest, stoul) { in TEST() argument
12 EXPECT_EQ(0ul, benchmark::stoul("0", &pos)); in TEST()
17 EXPECT_EQ(7ul, benchmark::stoul("7", &pos)); in TEST()
22 EXPECT_EQ(135ul, benchmark::stoul("135", &pos)); in TEST()
28 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos)); in TEST()
34 EXPECT_EQ(0xFFFFFFFFFFFFFFFFul, benchmark::stoul("18446744073709551615", &pos)); in TEST()
40 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2)); in TEST()
45 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8)); in TEST()
50 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10)); in TEST()
55 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16)); in TEST()
[all …]
/external/libkmsxx/utils/
Dkmstest.cpp133 unsigned num = stoul(sm[2].str()); in parse_crtc()
153 unsigned w = stoul(sm[3]); in parse_crtc()
154 unsigned h = stoul(sm[4]); in parse_crtc()
182 unsigned num = stoul(sm[2].str()); in parse_crtc()
202 unsigned clock = stoul(sm[3]); in parse_crtc()
204 unsigned hact = stoul(sm[4]); in parse_crtc()
205 unsigned hfp = stoul(sm[5]); in parse_crtc()
206 unsigned hsw = stoul(sm[6]); in parse_crtc()
207 unsigned hbp = stoul(sm[7]); in parse_crtc()
210 unsigned vact = stoul(sm[9]); in parse_crtc()
[all …]
Dkmsblank.cpp46 time = stoul(str); in main()
Dkmsview.cpp55 time = stoul(str); in main()
/external/swiftshader/third_party/subzero/src/
DIceRangeSpec.cpp53 *First = std::stoul(Tokens[0]); in getRange()
56 *First = Tokens[0].empty() ? 0 : std::stoul(Tokens[0]); in getRange()
57 *Last = Tokens[1].empty() ? RangeSpec::RangeMax : std::stoul(Tokens[1]); in getRange()
/external/google-benchmark/src/
Dstring_util.h48 unsigned long stoul(const std::string& str, size_t* pos = nullptr,
53 using std::stoul;
Dstring_util.cc179 unsigned long stoul(const std::string& str, size_t* pos, int base) { in stoul() function
Dsysinfo.cc236 CPUMask Mask(benchmark::stoul(Part, nullptr, 16)); in CountSetBitsInCPUMap()
/external/libcxx/utils/google-benchmark/src/
Dstring_util.h48 unsigned long stoul(const std::string& str, size_t* pos = nullptr,
53 using std::stoul;
Dstring_util.cc179 unsigned long stoul(const std::string& str, size_t* pos, int base) { in stoul() function
Dsysinfo.cc230 CPUMask Mask(benchmark::stoul(Part, nullptr, 16)); in CountSetBitsInCPUMap()
/external/libcxx/src/
Dstring.cpp274 stoul(const string& str, size_t* idx, int base) in stoul() function
280 stoul(const wstring& str, size_t* idx, int base) in stoul() function
/external/bcc/tests/cc/
Dtest_bpf_table.cc120 REQUIRE(42 * i == std::stoul(value.at(i), nullptr, 16));
/external/llvm/lib/Fuzzer/
DFuzzerDriver.cpp150 unsigned int Val = std::stoul(Str); in ParseOneFlag()
/external/vulkan-validation-layers/layers/
Dgpu_validation.cpp811 *linenumber = std::stoul(tokens[line_index]); in GetLineAndFilename()
841 *linenumber = std::stoul(captures[1]); in GetLineAndFilename()
/external/libbrillo/brillo/http/
Dhttp_utils_unittest.cc308 std::stoul(request.GetHeader(request_header::kContentLength))); in TEST()
/external/libcxx/include/
Dstring452 unsigned long stoul (const string& str, size_t* idx = 0, int base = 10);
472 unsigned long stoul (const wstring& str, size_t* idx = 0, int base = 10);
4189 _LIBCPP_FUNC_VIS unsigned long stoul (const string& __str, size_t* __idx = 0, int __base = 10);
4209 _LIBCPP_FUNC_VIS unsigned long stoul (const wstring& __str, size_t* __idx = 0, int __base = 10…
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_ext_inst_test.cpp71 return uint32_t(std::stoul(num_components_str)); in GetPackedNumComponents()
79 return uint32_t(std::stoul(packed_bit_width_str)); in GetPackedBitWidth()
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_ext_inst_test.cpp71 return uint32_t(std::stoul(num_components_str)); in GetPackedNumComponents()
79 return uint32_t(std::stoul(packed_bit_width_str)); in GetPackedBitWidth()