Home
last modified time | relevance | path

Searched refs:stoi (Results 1 – 25 of 50) sorted by relevance

12

/external/libcxx/test/std/strings/string.conversions/
Dstoi.pass.cpp23 assert(std::stoi("0") == 0); in main()
24 assert(std::stoi(L"0") == 0); in main()
25 assert(std::stoi("-0") == 0); in main()
26 assert(std::stoi(L"-0") == 0); in main()
27 assert(std::stoi("-10") == -10); in main()
28 assert(std::stoi(L"-10") == -10); in main()
29 assert(std::stoi(" 10") == 10); in main()
30 assert(std::stoi(L" 10") == 10); in main()
32 assert(std::stoi("10g", &idx, 16) == 16); in main()
35 assert(std::stoi(L"10g", &idx, 16) == 16); in main()
[all …]
/external/google-benchmark/test/
Dstring_util_gtest.cc68 TEST(StringUtilTest, stoi) { in TEST() argument
71 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST()
76 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST()
81 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST()
86 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST()
91 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST()
96 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST()
101 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST()
106 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST()
110 ASSERT_THROW(benchmark::stoi("this is a test"), std::invalid_argument); in TEST()
/external/libcxx/utils/google-benchmark/test/
Dstring_util_gtest.cc68 TEST(StringUtilTest, stoi) { in TEST() argument
71 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST()
76 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST()
81 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST()
86 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST()
91 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST()
96 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST()
101 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST()
106 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST()
110 ASSERT_THROW(benchmark::stoi("this is a test"), std::invalid_argument); in TEST()
/external/bcc/src/cc/
Dcommon.cc32 cpus.push_back(std::stoi(cpu_range)); in read_cpu_range()
35 int start = std::stoi(cpu_range.substr(0, rangeop)); in read_cpu_range()
36 int end = std::stoi(cpu_range.substr(rangeop + 1)); in read_cpu_range()
/external/google-benchmark/src/
Dstring_util.h50 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10);
54 using std::stoi;
/external/libcxx/utils/google-benchmark/src/
Dstring_util.h50 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10);
54 using std::stoi;
/external/autotest/client/site_tests/camera_V4L2/src/
Dcamera_characteristics.cc51 info->frames_to_skip_after_streamon = stoi(value); in SetEntry()
56 info->lens_facing = stoi(value); in SetEntry()
58 info->sensor_orientation = stoi(value); in SetEntry()
/external/libkmsxx/utils/
Dkmsview.cpp74 uint32_t w = stoi(params[1]); in main()
75 uint32_t h = stoi(params[2]); in main()
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dparse_testdata.cc97 int example_count = std::stoi(csv[0][1]); in ParseExamples()
115 int shape_part = std::stoi(shape_part_to_parse); in ParseExamples()
134 int inputs = std::stoi(csv[current_line][1]); in ParseExamples()
143 int outputs = std::stoi(csv[current_line][1]); in ParseExamples()
/external/tensorflow/tensorflow/lite/testing/
Dparse_testdata.cc94 int example_count = std::stoi(csv[0][1]); in ParseExamples()
112 int shape_part = std::stoi(shape_part_to_parse); in ParseExamples()
131 int inputs = std::stoi(csv[current_line][1]); in ParseExamples()
140 int outputs = std::stoi(csv[current_line][1]); in ParseExamples()
/external/libese/apps/boot/
Dese_boot_tool.cpp79 output->push_back(static_cast<uint8_t>(std::stoi(hex, nullptr, 16))); in hexify()
325 uint8_t lockVal = static_cast<uint8_t>(std::stoi(args[3], nullptr, 0)); in handle_lock_state()
380 int index = std::stoi(args[2], nullptr, 0); in handle_rollback()
/external/libkmsxx/kmscube/
Dcube.cpp53 s_num_frames = stoi(s); in main()
/external/catch2/examples/
D301-Gen-MapTypeConversion.cpp48 auto num = GENERATE(map<int>([](std::string const& line) { return std::stoi(line); }, in __anonf1d2ebcb0102()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/
Dwait_terminates.sh.cpp115 int id = std::stoi(argv[1]); in main()
/external/bcc/src/cc/usdt/
Dusdt_args.cc249 dest->arg_size_ = stoi(matches.str(1)); in parse()
254 dest->constant_ = stoi(matches.str(1)); in parse()
258 dest->deref_offset_ = stoi(matches.str(1)); in parse()
/external/bcc/examples/cpp/
DFollyRequestContextSwitch.cc72 pid = std::stoi(argv[i + 1]); in main()
/external/v4l2_codec2/tests/
DC2VDAComponent_test.cpp331 mTestVideoFile->mWidth = std::stoi(tokens[2]); in parseTestVideoData()
332 mTestVideoFile->mHeight = std::stoi(tokens[3]); in parseTestVideoData()
333 mTestVideoFile->mNumFrames = std::stoi(tokens[4]); in parseTestVideoData()
334 mTestVideoFile->mNumFragments = std::stoi(tokens[5]); in parseTestVideoData()
/external/tensorflow/tensorflow/core/util/
Dutil.cc129 if ((tf_disable_mkl != NULL) && (std::stoi(tf_disable_mkl) == 1)) { in DisableMKL()
/external/libpcap/
Dscanner.l150 static int stoi(char *);
408 {N} { yylval->i = stoi((char *)yytext); return NUM; }
514 stoi(char *s) in stoi() function
/external/catch2/misc/
Dcoverage-helper.cpp64 return std::stoi(match[1]); in parse_log_file_arg()
/external/libcxx/src/
Dstring.cpp250 stoi(const string& str, size_t* idx, int base) in stoi() function
256 stoi(const wstring& str, size_t* idx, int base) in stoi() function
/external/skqp/src/sksl/
DSkSLString.h130 int stoi(const String& s);
/external/skia/src/sksl/
DSkSLString.h130 int stoi(const String& s);
/external/tensorflow/tensorflow/core/platform/
Dsubprocess_test.cc126 int count = stoi(out); in TEST_F()
/external/nos/host/android/hals/keymaster/
DKeymasterDevice.cpp75 value = std::stoi(sanitized); in ExtractVersion()
85 value = std::stoi(sanitized); in ExtractVersion()
107 return_value = std::stoi(filtered_code); in DateCodeToUint32()
112 return_value = std::stoi(filtered_code); in DateCodeToUint32()

12