/freebsd/contrib/kyua/utils/text/ |
H A D | operations_test.cpp | 342 ATF_REQUIRE( text::to_type< bool >("true")); in ATF_TEST_CASE_BODY() 343 ATF_REQUIRE(!text::to_type< bool >("false")); in ATF_TEST_CASE_BODY() 350 ATF_REQUIRE_EQ(12, text::to_type< int >("12")); in ATF_TEST_CASE_BODY() 351 ATF_REQUIRE_EQ(18745, text::to_type< int >("18745")); in ATF_TEST_CASE_BODY() 352 ATF_REQUIRE_EQ(-12345, text::to_type< int >("-12345")); in ATF_TEST_CASE_BODY() 354 ATF_REQUIRE_EQ(12.0, text::to_type< double >("12")); in ATF_TEST_CASE_BODY() 355 ATF_REQUIRE_EQ(12.5, text::to_type< double >("12.5")); in ATF_TEST_CASE_BODY() 365 ATF_REQUIRE_EQ("", text::to_type< std::string >("")); in ATF_TEST_CASE_BODY() 366 ATF_REQUIRE_EQ(" abcd ", text::to_type< std::string >(" abcd ")); in ATF_TEST_CASE_BODY() 373 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("")); in ATF_TEST_CASE_BODY() [all …]
|
H A D | operations.hpp | 58 Type to_type(const std::string&); 60 bool to_type(const std::string&); 62 std::string to_type(const std::string&);
|
H A D | operations.cpp | 240 text::to_type(const std::string& str) in to_type() function in text 258 text::to_type(const std::string& str) in to_type() function in text
|
H A D | templates.cpp | 345 const std::size_t next_index = 1 + text::to_type< std::size_t >( in handle_normal() 670 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)
|
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | text_test.cpp | 346 ATF_TEST_CASE(to_type); 347 ATF_TEST_CASE_HEAD(to_type) in ATF_TEST_CASE_HEAD() argument 351 ATF_TEST_CASE_BODY(to_type) in ATF_TEST_CASE_BODY() argument 353 using atf::text::to_type; in ATF_TEST_CASE_BODY() 355 ATF_REQUIRE_EQ(to_type< int >("0"), 0); in ATF_TEST_CASE_BODY() 356 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234); in ATF_TEST_CASE_BODY() 357 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" ")); in ATF_TEST_CASE_BODY() 358 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a")); in ATF_TEST_CASE_BODY() 359 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("a")); in ATF_TEST_CASE_BODY() 361 ATF_REQUIRE_EQ(to_type< float >("0.5"), 0.5); in ATF_TEST_CASE_BODY() [all …]
|
H A D | text.hpp | 136 to_type(const std::string& str) in to_type() function
|
H A D | text.cpp | 155 return to_type< int64_t >(str) * multiplier; in to_bytes()
|
/freebsd/contrib/kyua/engine/ |
H A D | tap_parser.cpp | 95 text::to_type< std::size_t >(plan_matches.get(1)), in try_parse_plan() 96 text::to_type< std::size_t >(plan_matches.get(2))); in try_parse_plan()
|
H A D | config.cpp | 195 uid = text::to_type< int >(raw_value); in set_string()
|
H A D | atf_result.cpp | 165 return utils::make_optional(text::to_type< int >(str)); in parse_int()
|
H A D | scheduler_test.cpp | 110 return text::to_type< int >(str.substr(prefix.length())); in suffix_to_int()
|
/freebsd/contrib/kyua/utils/cmdline/ |
H A D | options.cpp | 310 (void)text::to_type< int >(raw_value); in validate() 330 return text::to_type< int >(raw_value); in convert()
|
H A D | ui.cpp | 141 utils::text::to_type< std::size_t >(columns.get())); in screen_width()
|
/freebsd/contrib/kyua/utils/ |
H A D | units.cpp | 100 count = text::to_type< double >(str); in parse()
|
H A D | test_utils.ipp | 93 !text::to_type< bool >(tc->get_config_var("run_coredump_tests"))) {
|
/freebsd/contrib/kyua/utils/format/ |
H A D | formatter.cpp | 101 return text::to_type< int >(str); in to_int()
|
/freebsd/contrib/atf/atf-c++/ |
H A D | macros_test.cpp | 119 long v1 = atf::text::to_type< long >(get_config_var("v1")); in ATF_TEST_CASE_BODY() 120 long v2 = atf::text::to_type< long >(get_config_var("v2")); in ATF_TEST_CASE_BODY()
|
/freebsd/contrib/atf/atf-sh/ |
H A D | atf-check.cpp | 201 const int value = atf::text::to_type< int >(str); in parse_exit_code() 250 return atf::text::to_type< int >(str); in parse_signal()
|
/freebsd/contrib/kyua/model/ |
H A D | metadata.cpp | 124 seconds = text::to_type< unsigned int >(raw_value); in set_string()
|
/freebsd/contrib/kyua/utils/config/ |
H A D | nodes.ipp | 241 typed_leaf_node< ValueType >::set(text::to_type< ValueType >(
|
H A D | tree_test.cpp | 112 int_wrapper new_value(text::to_type< int >(raw_value)); in set_string()
|