/netbsd-src/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()
|
/netbsd-src/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()
|
/netbsd-src/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()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | sancov.cc | 59 tree to_type = NULL_TREE; in instrument_comparison() local 71 to_type = unsigned_char_type_node; in instrument_comparison() 76 to_type = uint16_type_node; in instrument_comparison() 81 to_type = uint32_type_node; in instrument_comparison() 86 to_type = uint64_type_node; in instrument_comparison() 95 to_type = float_type_node; in instrument_comparison() 100 to_type = double_type_node; in instrument_comparison() 104 if (to_type != NULL_TREE) in instrument_comparison() 108 if (!useless_type_conversion_p (to_type, type)) in instrument_comparison() 111 lhs = fold_convert (to_type, lhs); in instrument_comparison() [all …]
|
H A D | gimple-builder.cc | 107 build_type_cast (tree to_type, tree op, tree lhs) in build_type_cast() argument 110 lhs = make_ssa_name (to_type); in build_type_cast() 115 build_type_cast (tree to_type, gimple *op, tree lhs) in build_type_cast() argument 117 return build_type_cast (to_type, gimple_assign_lhs (op), lhs); in build_type_cast()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | sancov.c | 59 tree to_type = NULL_TREE; in instrument_comparison() local 71 to_type = unsigned_char_type_node; in instrument_comparison() 76 to_type = uint16_type_node; in instrument_comparison() 81 to_type = uint32_type_node; in instrument_comparison() 86 to_type = uint64_type_node; in instrument_comparison() 95 to_type = float_type_node; in instrument_comparison() 100 to_type = double_type_node; in instrument_comparison() 104 if (to_type != NULL_TREE) in instrument_comparison() 108 if (!useless_type_conversion_p (to_type, type)) in instrument_comparison() 111 lhs = fold_convert (to_type, lhs); in instrument_comparison() [all …]
|
H A D | gimple-builder.c | 107 build_type_cast (tree to_type, tree op, tree lhs) in build_type_cast() argument 110 lhs = make_ssa_name (to_type); in build_type_cast() 115 build_type_cast (tree to_type, gimple *op, tree lhs) in build_type_cast() argument 117 return build_type_cast (to_type, gimple_assign_lhs (op), lhs); in build_type_cast()
|
H A D | tree.c | 7885 build_pointer_type_for_mode (tree to_type, machine_mode mode, in build_pointer_type_for_mode() argument 7891 if (to_type == error_mark_node) in build_pointer_type_for_mode() 7896 if (lookup_attribute ("may_alias", TYPE_ATTRIBUTES (to_type))) in build_pointer_type_for_mode() 7907 if (TYPE_POINTER_TO (to_type) != 0 in build_pointer_type_for_mode() 7908 && TREE_CODE (TYPE_POINTER_TO (to_type)) != POINTER_TYPE) in build_pointer_type_for_mode() 7909 return TYPE_POINTER_TO (to_type); in build_pointer_type_for_mode() 7913 for (t = TYPE_POINTER_TO (to_type); t; t = TYPE_NEXT_PTR_TO (t)) in build_pointer_type_for_mode() 7919 TREE_TYPE (t) = to_type; in build_pointer_type_for_mode() 7922 TYPE_NEXT_PTR_TO (t) = TYPE_POINTER_TO (to_type); in build_pointer_type_for_mode() 7923 TYPE_POINTER_TO (to_type) = t; in build_pointer_type_for_mode() [all …]
|
/netbsd-src/external/bsd/kyua-cli/dist/utils/cmdline/ |
H A D | options.cpp | 312 (void)text::to_type< int >(raw_value); in validate() 332 return text::to_type< int >(raw_value); in convert()
|
/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | elf32-i386.c | 1070 unsigned int to_type = from_type; in elf_i386_tls_transition() local 1103 to_type = to_le_type; in elf_i386_tls_transition() 1106 to_type = to_ie_type; in elf_i386_tls_transition() 1113 unsigned int new_to_type = to_type; in elf_i386_tls_transition() 1118 if (to_type == R_386_TLS_GD in elf_i386_tls_transition() 1119 || to_type == R_386_TLS_GOTDESC in elf_i386_tls_transition() 1120 || to_type == R_386_TLS_DESC_CALL) in elf_i386_tls_transition() 1131 check = new_to_type != to_type && from_type == to_type; in elf_i386_tls_transition() 1132 to_type = new_to_type; in elf_i386_tls_transition() 1139 to_type = to_le_type; in elf_i386_tls_transition() [all …]
|
H A D | elf64-x86-64.c | 1403 unsigned int to_type = from_type; in elf_x86_64_tls_transition() local 1423 to_type = R_X86_64_TPOFF32; in elf_x86_64_tls_transition() 1425 to_type = R_X86_64_GOTTPOFF; in elf_x86_64_tls_transition() 1432 unsigned int new_to_type = to_type; in elf_x86_64_tls_transition() 1437 if (to_type == R_X86_64_TLSGD in elf_x86_64_tls_transition() 1438 || to_type == R_X86_64_GOTPC32_TLSDESC in elf_x86_64_tls_transition() 1439 || to_type == R_X86_64_CODE_4_GOTPC32_TLSDESC in elf_x86_64_tls_transition() 1440 || to_type == R_X86_64_TLSDESC_CALL) in elf_x86_64_tls_transition() 1449 check = new_to_type != to_type && from_type == to_type; in elf_x86_64_tls_transition() 1450 to_type = new_to_type; in elf_x86_64_tls_transition() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | elf32-i386.c | 1069 unsigned int to_type = from_type; in elf_i386_tls_transition() local 1089 to_type = R_386_TLS_LE_32; in elf_i386_tls_transition() 1092 to_type = R_386_TLS_IE_32; in elf_i386_tls_transition() 1099 unsigned int new_to_type = to_type; in elf_i386_tls_transition() 1104 if (to_type == R_386_TLS_GD in elf_i386_tls_transition() 1105 || to_type == R_386_TLS_GOTDESC in elf_i386_tls_transition() 1106 || to_type == R_386_TLS_DESC_CALL) in elf_i386_tls_transition() 1117 check = new_to_type != to_type && from_type == to_type; in elf_i386_tls_transition() 1118 to_type = new_to_type; in elf_i386_tls_transition() 1125 to_type = R_386_TLS_LE_32; in elf_i386_tls_transition() [all …]
|
H A D | elf64-x86-64.c | 1271 unsigned int to_type = from_type; in elf_x86_64_tls_transition() local 1289 to_type = R_X86_64_TPOFF32; in elf_x86_64_tls_transition() 1291 to_type = R_X86_64_GOTTPOFF; in elf_x86_64_tls_transition() 1298 unsigned int new_to_type = to_type; in elf_x86_64_tls_transition() 1303 if (to_type == R_X86_64_TLSGD in elf_x86_64_tls_transition() 1304 || to_type == R_X86_64_GOTPC32_TLSDESC in elf_x86_64_tls_transition() 1305 || to_type == R_X86_64_TLSDESC_CALL) in elf_x86_64_tls_transition() 1314 check = new_to_type != to_type && from_type == to_type; in elf_x86_64_tls_transition() 1315 to_type = new_to_type; in elf_x86_64_tls_transition() 1322 to_type = R_X86_64_TPOFF32; in elf_x86_64_tls_transition() [all …]
|
/netbsd-src/external/bsd/kyua-cli/dist/utils/ |
H A D | units.cpp | 100 count = text::to_type< double >(str); in parse()
|
/netbsd-src/external/bsd/kyua-cli/dist/engine/ |
H A D | config.cpp | 174 uid = text::to_type< int >(raw_value); in set_string()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/ |
H A D | name-lookup.c | 1588 tree to_type = NULL_TREE; in member_vec_dedup() local 1630 to_type = next; in member_vec_dedup() 1646 if (to_type) in member_vec_dedup() 1649 current = to_type; in member_vec_dedup() 1651 current = stat_hack (current, to_type); in member_vec_dedup() 2360 tree to_type = old_type; in update_binding() local 2369 tree other = to_type; in update_binding() 2387 to_type = decl; in update_binding() 2396 to_type = old; in update_binding() 2430 if (to_type != old_type in update_binding() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/ |
H A D | name-lookup.cc | 2208 tree to_type = NULL_TREE; in member_vec_dedup() local 2250 to_type = next; in member_vec_dedup() 2266 if (to_type) in member_vec_dedup() 2269 current = to_type; in member_vec_dedup() 2271 current = stat_hack (current, to_type); in member_vec_dedup() 2805 tree to_type = old_type; in update_binding() local 2819 gcc_checking_assert (!to_type in update_binding() 2825 gcc_checking_assert (!to_type); in update_binding() 2827 to_type = decl; in update_binding() 2839 gcc_checking_assert (!to_type); in update_binding() [all …]
|