| /minix3/external/bsd/kyua-cli/dist/utils/text/ |
| H A D | operations_test.cpp | 277 ATF_REQUIRE( text::to_type< bool >("true")); in ATF_TEST_CASE_BODY() 278 ATF_REQUIRE(!text::to_type< bool >("false")); in ATF_TEST_CASE_BODY() 285 ATF_REQUIRE_EQ(12, text::to_type< int >("12")); in ATF_TEST_CASE_BODY() 286 ATF_REQUIRE_EQ(18745, text::to_type< int >("18745")); in ATF_TEST_CASE_BODY() 287 ATF_REQUIRE_EQ(-12345, text::to_type< int >("-12345")); in ATF_TEST_CASE_BODY() 289 ATF_REQUIRE_EQ(12.0, text::to_type< double >("12")); in ATF_TEST_CASE_BODY() 290 ATF_REQUIRE_EQ(12.5, text::to_type< double >("12.5")); in ATF_TEST_CASE_BODY() 300 ATF_REQUIRE_EQ("", text::to_type< std::string >("")); in ATF_TEST_CASE_BODY() 301 ATF_REQUIRE_EQ(" abcd ", text::to_type< std::string >(" abcd ")); in ATF_TEST_CASE_BODY() 308 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("")); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | operations.hpp | 54 Type to_type(const std::string&); 56 bool to_type(const std::string&); 58 std::string to_type(const std::string&);
|
| H A D | operations.cpp | 170 text::to_type(const std::string& str) in to_type() function in text 188 text::to_type(const std::string& str) in to_type() function in text
|
| H A D | templates.cpp | 344 const std::size_t next_index = 1 + text::to_type< std::size_t >( in handle_normal() 669 index = text::to_type< std::size_t >(index_str); in get_vector()
|
| H A D | operations.ipp | 75 utils::text::to_type(const std::string& str)
|
| /minix3/external/bsd/atf/dist/atf-c++/detail/ |
| H A D | text_test.cpp | 350 ATF_TEST_CASE(to_type); 351 ATF_TEST_CASE_HEAD(to_type) in ATF_TEST_CASE_HEAD() argument 355 ATF_TEST_CASE_BODY(to_type) in ATF_TEST_CASE_BODY() argument 357 using atf::text::to_type; in ATF_TEST_CASE_BODY() 359 ATF_REQUIRE_EQ(to_type< int >("0"), 0); in ATF_TEST_CASE_BODY() 360 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234); in ATF_TEST_CASE_BODY() 361 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" ")); in ATF_TEST_CASE_BODY() 362 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a")); in ATF_TEST_CASE_BODY() 363 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("a")); in ATF_TEST_CASE_BODY() 365 ATF_REQUIRE_EQ(to_type< float >("0.5"), 0.5); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | text.hpp | 140 to_type(const std::string& str) in to_type() function
|
| H A D | text.cpp | 159 return to_type< int64_t >(str) * multiplier; in to_bytes()
|
| /minix3/external/bsd/atf/dist/tools/ |
| H A D | text_test.cpp | 350 ATF_TEST_CASE(to_type); 351 ATF_TEST_CASE_HEAD(to_type) in ATF_TEST_CASE_HEAD() argument 355 ATF_TEST_CASE_BODY(to_type) in ATF_TEST_CASE_BODY() argument 357 using tools::text::to_type; in ATF_TEST_CASE_BODY() 359 ATF_REQUIRE_EQ(to_type< int >("0"), 0); in ATF_TEST_CASE_BODY() 360 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234); in ATF_TEST_CASE_BODY() 361 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" ")); in ATF_TEST_CASE_BODY() 362 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a")); in ATF_TEST_CASE_BODY() 363 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("a")); in ATF_TEST_CASE_BODY() 365 ATF_REQUIRE_EQ(to_type< float >("0.5"), 0.5); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | text.hpp | 140 to_type(const std::string& str) in to_type() function
|
| H A D | text.cpp | 157 return to_type< int64_t >(str) * multiplier; in to_bytes()
|
| H A D | ui.cpp | 58 width = tools::text::to_type< size_t >(cols); in terminal_width()
|
| /minix3/external/bsd/bind/dist/unit/atf-src/atf-c++/detail/ |
| H A D | text_test.cpp | 350 ATF_TEST_CASE(to_type); 351 ATF_TEST_CASE_HEAD(to_type) in ATF_TEST_CASE_HEAD() argument 355 ATF_TEST_CASE_BODY(to_type) in ATF_TEST_CASE_BODY() argument 357 using atf::text::to_type; in ATF_TEST_CASE_BODY() 359 ATF_REQUIRE_EQ(to_type< int >("0"), 0); in ATF_TEST_CASE_BODY() 360 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234); in ATF_TEST_CASE_BODY() 361 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" ")); in ATF_TEST_CASE_BODY() 362 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a")); in ATF_TEST_CASE_BODY() 363 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("a")); in ATF_TEST_CASE_BODY() 365 ATF_REQUIRE_EQ(to_type< float >("0.5"), 0.5); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | text.hpp | 140 to_type(const std::string& str) in to_type() function
|
| H A D | text.cpp | 159 return to_type< int64_t >(str) * multiplier; in to_bytes()
|
| H A D | ui.cpp | 59 width = atf::text::to_type< size_t >(cols); in terminal_width()
|
| /minix3/external/bsd/kyua-cli/dist/utils/ |
| H A D | units.cpp | 100 count = text::to_type< double >(str); in parse()
|
| /minix3/external/bsd/kyua-cli/dist/utils/cmdline/ |
| H A D | options.cpp | 320 (void)text::to_type< int >(raw_value); in validate() 340 return text::to_type< int >(raw_value); in convert()
|
| H A D | ui.cpp | 132 utils::text::to_type< std::size_t >(columns.get())); in screen_width()
|
| /minix3/external/bsd/kyua-cli/dist/engine/ |
| H A D | config.cpp | 174 uid = text::to_type< int >(raw_value); in set_string()
|
| /minix3/external/bsd/kyua-cli/dist/utils/format/ |
| H A D | formatter.cpp | 101 return text::to_type< int >(str); in to_int()
|
| /minix3/external/bsd/bind/dist/unit/atf-src/atf-c++/ |
| H A D | macros_test.cpp | 121 long v1 = atf::text::to_type< long >(get_config_var("v1")); in ATF_TEST_CASE_BODY() 122 long v2 = atf::text::to_type< long >(get_config_var("v2")); in ATF_TEST_CASE_BODY()
|
| /minix3/external/bsd/bind/dist/unit/atf-src/atf-sh/ |
| H A D | atf-check.cpp | 171 const int value = atf::text::to_type< int >(str); in parse_exit_code() 220 return atf::text::to_type< int >(str); in parse_signal()
|
| /minix3/external/bsd/atf/dist/atf-c++/ |
| H A D | macros_test.cpp | 121 long v1 = atf::text::to_type< long >(get_config_var("v1")); in ATF_TEST_CASE_BODY() 122 long v2 = atf::text::to_type< long >(get_config_var("v2")); in ATF_TEST_CASE_BODY()
|
| /minix3/external/bsd/atf/dist/atf-sh/ |
| H A D | atf-check.cpp | 171 const int value = atf::text::to_type< int >(str); in parse_exit_code() 220 return atf::text::to_type< int >(str); in parse_signal()
|