Home
last modified time | relevance | path

Searched refs:to_type (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/kyua/utils/text/
H A Doperations_test.cpp342 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 Doperations.hpp58 Type to_type(const std::string&);
60 bool to_type(const std::string&);
62 std::string to_type(const std::string&);
H A Doperations.cpp240 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 Dtemplates.cpp345 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 Doperations.ipp75 utils::text::to_type(const std::string& str)
/freebsd/contrib/atf/atf-c++/detail/
H A Dtext_test.cpp346 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 Dtext.hpp136 to_type(const std::string& str) in to_type() function
H A Dtext.cpp155 return to_type< int64_t >(str) * multiplier; in to_bytes()
/freebsd/contrib/kyua/engine/
H A Dtap_parser.cpp95 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 Dconfig.cpp195 uid = text::to_type< int >(raw_value); in set_string()
H A Datf_result.cpp165 return utils::make_optional(text::to_type< int >(str)); in parse_int()
H A Dscheduler_test.cpp110 return text::to_type< int >(str.substr(prefix.length())); in suffix_to_int()
/freebsd/contrib/kyua/utils/cmdline/
H A Doptions.cpp310 (void)text::to_type< int >(raw_value); in validate()
330 return text::to_type< int >(raw_value); in convert()
H A Dui.cpp141 utils::text::to_type< std::size_t >(columns.get())); in screen_width()
/freebsd/contrib/kyua/utils/
H A Dunits.cpp100 count = text::to_type< double >(str); in parse()
H A Dtest_utils.ipp93 !text::to_type< bool >(tc->get_config_var("run_coredump_tests"))) {
/freebsd/contrib/kyua/utils/format/
H A Dformatter.cpp101 return text::to_type< int >(str); in to_int()
/freebsd/contrib/atf/atf-c++/
H A Dmacros_test.cpp119 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 Datf-check.cpp201 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 Dmetadata.cpp124 seconds = text::to_type< unsigned int >(raw_value); in set_string()
/freebsd/contrib/kyua/utils/config/
H A Dnodes.ipp241 typed_leaf_node< ValueType >::set(text::to_type< ValueType >(
H A Dtree_test.cpp112 int_wrapper new_value(text::to_type< int >(raw_value)); in set_string()