Home
last modified time | relevance | path

Searched refs:stoi (Results 1 - 21 of 21) sorted by relevance

/third_party/benchmark/test/
H A Dstring_util_gtest.cc76 TEST(StringUtilTest, stoi){{size_t pos = 0; in TEST()
77 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST()
82 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST()
87 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST()
92 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST()
97 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST()
102 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST()
107 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST()
112 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST()
117 ASSERT_THROW(std::ignore = benchmark::stoi("thi in TEST()
[all...]
/third_party/benchmark/src/
H A Dstring_util.h53 * stoul, stoi, stod. We reimplement them here using C functions strtoul,
59 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10);
63 using std::stoi; // NOLINT(misc-unused-using-decls)
H A Dstring_util.cc171 * stoul, stoi, stod. We reimplement them here using C functions strtoul,
201 int stoi(const std::string& str, size_t* pos, int base) { in stoi() function
H A Dsysinfo.cc527 const int cur_id = benchmark::stoi(value); in GetNumCPUs()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo_android.cpp50 info->androidSdkLevel = std::stoi(androidSdkLevel); in GetSystemInfo()
/third_party/skia/third_party/externals/tint/src/
H A Ddemangler.cc53 Symbol sym(std::stoi(id), symbols.ProgramID()); in Demangle()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DLLVMAsm.cpp131 auto alignPow2 = std::stoi(matches[1]); in fixupAsmFile()
/third_party/skia/include/private/
H A DSkSLString.h68 bool stoi(const skstd::string_view& s, SKSL_INT* value);
/third_party/skia/src/sksl/
H A DSkSLString.cpp156 bool stoi(const skstd::string_view& s, SKSL_INT* value) { in stoi() function
H A DSkSLDSLParser.cpp670 if (!SkSL::stoi(resultFrag, &resultValue)) { in layoutInt()
1757 if (!SkSL::stoi(s, dest)) { in intLiteral()
/third_party/skia/tools/
H A DMSKPPlayer.cpp301 fNextDrawPictureToLayerID = std::stoi(tokens[1].c_str());
315 fNextDrawImageFromLayerID = std::stoi(tokens[1].c_str());
/third_party/mesa3d/src/gallium/frontends/clover/core/
H A Dprintf.cpp111 component_count = std::stoi(s); in print_formatted()
/third_party/skia/tools/debugger/
H A DDebugCanvas.cpp405 fnextDrawPictureLayerId = std::stoi(tokens[1].c_str());
410 fnextDrawImageRectLayerId = std::stoi(tokens[1].c_str());
/third_party/node/src/
H A Dnode_report_utils.cc31 DCHECK_EQ(port, std::stoi(endpoint.service)); in ReportEndpoint()
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerTracePC.cpp176 uintptr_t Line = std::stoi(LineStr);
/third_party/json/tests/src/
H A Dunit-udt.cpp374 j = std::stoi(l.number); in to_json()
/third_party/cups-filters/filter/
H A Drastertopdf.cpp908 unsigned resolution_integer = std::stoi(res.substr(0, res.size() - 3)); in finish_page()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
H A DANGLETest.cpp409 gTestStartDelaySeconds = std::stoi(testStartDelay); in SetTestStartDelay()
/third_party/node/deps/v8/src/torque/
H A Dtorque-parser.cc880 result = std::stoi(value, &num_chars_converted, 0); in YieldInt32()
/third_party/skia/third_party/vulkanmemoryallocator/include/
H A Dvk_mem_alloc.h15628 outParams.threadId = static_cast<uint32_t>(std::stoi(thread_id_as_string.c_str()));
/third_party/rust/crates/bindgen/bindgen-tests/tests/
H A Dstylo.hpp23066 stoi(const string& __str, size_t* __idx = 0, int __base = 10)
23067 { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
23172 stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
23173 { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
[all...]

Completed in 148 milliseconds