Searched refs:stod (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/libcxx/test/std/strings/string.conversions/ |
| H A D | stod.pass.cpp | 25 assert(std::stod("0") == 0); in main() 26 assert(std::stod("-0") == 0); in main() 27 assert(std::stod("-10") == -10); in main() 28 assert(std::stod(" 10") == 10); in main() 63 (void)std::stod("", &idx); in main() 81 (void)std::stod("a1", &idx); in main() 93 assert(std::stod(L"0") == 0); in main() 94 assert(std::stod(L"-0") == 0); in main() 95 assert(std::stod(L"-10.5") == -10.5); in main() 96 assert(std::stod(L" 10") == 10); in main() [all …]
|
| /llvm-project-15.0.7/third-party/benchmark/test/ |
| H A D | string_util_gtest.cc | 114 TEST(StringUtilTest, stod){{size_t pos = 0; in TEST() argument 115 EXPECT_EQ(0.0, benchmark::stod("0", &pos)); in TEST() 120 EXPECT_EQ(-84.0, benchmark::stod("-84", &pos)); in TEST() 125 EXPECT_EQ(1234.0, benchmark::stod("1234", &pos)); in TEST() 130 EXPECT_EQ(1.5, benchmark::stod("1.5", &pos)); in TEST() 136 EXPECT_EQ(-1.25e+9, benchmark::stod("-1.25e+9", &pos)); in TEST() 140 { ASSERT_THROW(benchmark::stod("this is a test"), std::invalid_argument); } in TEST()
|
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | string_util.h | 55 double stod(const std::string& str, size_t* pos = nullptr); 57 using std::stod; // NOLINT(misc-unused-using-decls)
|
| H A D | string_util.cc | 238 double stod(const std::string& str, size_t* pos) { in stod() function
|
| H A D | sysinfo.cc | 591 double cycles_per_second = benchmark::stod(value) * 1000000.0; in GetCPUCyclesPerSecond() 596 bogo_clock = benchmark::stod(value) * 1000000.0; in GetCPUCyclesPerSecond()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousMissingCommaCheck.cpp | 76 RatioThreshold(std::stod(Options.get("RatioThreshold", ".2").str())), in SuspiciousMissingCommaCheck()
|
| /llvm-project-15.0.7/libcxx/src/ |
| H A D | string.cpp | 249 double stod(const string& str, size_t* idx) { in stod() function 282 double stod(const wstring& str, size_t* idx) { in stod() function
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | string | 470 double stod (const string& str, size_t* idx = nullptr); 490 double stod (const wstring& str, size_t* idx = nullptr); 4518 _LIBCPP_FUNC_VIS double stod (const string& __str, size_t* __idx = nullptr); 4539 _LIBCPP_FUNC_VIS double stod (const wstring& __str, size_t* __idx = nullptr);
|