Home
last modified time | relevance | path

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

12

/minix3/external/bsd/kyua-cli/dist/utils/text/
H A Doperations_test.cpp277 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 Doperations.hpp54 Type to_type(const std::string&);
56 bool to_type(const std::string&);
58 std::string to_type(const std::string&);
H A Doperations.cpp170 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 Dtemplates.cpp344 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 Doperations.ipp75 utils::text::to_type(const std::string& str)
/minix3/external/bsd/atf/dist/atf-c++/detail/
H A Dtext_test.cpp350 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 Dtext.hpp140 to_type(const std::string& str) in to_type() function
H A Dtext.cpp159 return to_type< int64_t >(str) * multiplier; in to_bytes()
/minix3/external/bsd/atf/dist/tools/
H A Dtext_test.cpp350 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 Dtext.hpp140 to_type(const std::string& str) in to_type() function
H A Dtext.cpp157 return to_type< int64_t >(str) * multiplier; in to_bytes()
H A Dui.cpp58 width = tools::text::to_type< size_t >(cols); in terminal_width()
/minix3/external/bsd/bind/dist/unit/atf-src/atf-c++/detail/
H A Dtext_test.cpp350 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 Dtext.hpp140 to_type(const std::string& str) in to_type() function
H A Dtext.cpp159 return to_type< int64_t >(str) * multiplier; in to_bytes()
H A Dui.cpp59 width = atf::text::to_type< size_t >(cols); in terminal_width()
/minix3/external/bsd/kyua-cli/dist/utils/
H A Dunits.cpp100 count = text::to_type< double >(str); in parse()
/minix3/external/bsd/kyua-cli/dist/utils/cmdline/
H A Doptions.cpp320 (void)text::to_type< int >(raw_value); in validate()
340 return text::to_type< int >(raw_value); in convert()
H A Dui.cpp132 utils::text::to_type< std::size_t >(columns.get())); in screen_width()
/minix3/external/bsd/kyua-cli/dist/engine/
H A Dconfig.cpp174 uid = text::to_type< int >(raw_value); in set_string()
/minix3/external/bsd/kyua-cli/dist/utils/format/
H A Dformatter.cpp101 return text::to_type< int >(str); in to_int()
/minix3/external/bsd/bind/dist/unit/atf-src/atf-c++/
H A Dmacros_test.cpp121 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 Datf-check.cpp171 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 Dmacros_test.cpp121 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 Datf-check.cpp171 const int value = atf::text::to_type< int >(str); in parse_exit_code()
220 return atf::text::to_type< int >(str); in parse_signal()

12