Searched refs:to_type (Results 1 - 25 of 100) sorted by relevance

1234

/netbsd-current/external/bsd/kyua-cli/dist/utils/text/
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_test.cpp277 ATF_REQUIRE( text::to_type< bool >("true"));
278 ATF_REQUIRE(!text::to_type< bool >("false"));
285 ATF_REQUIRE_EQ(12, text::to_type< int >("12"));
286 ATF_REQUIRE_EQ(18745, text::to_type< int >("18745"));
287 ATF_REQUIRE_EQ(-12345, text::to_type< int >("-12345"));
289 ATF_REQUIRE_EQ(12.0, text::to_type< double >("12"));
290 ATF_REQUIRE_EQ(12.5, text::to_type< double >("12.5"));
298 // does nothing allows callers to delegate work to to_type without worrying
300 ATF_REQUIRE_EQ("", text::to_type< std::string >(""));
301 ATF_REQUIRE_EQ(" abcd ", text::to_type< st
[all...]
H A Doperations.cpp170 text::to_type(const std::string& str) function in class:text
181 /// Identity function for to_type, for genericity purposes.
188 text::to_type(const std::string& str) function in class:text
/netbsd-current/external/gpl3/gcc/dist/gcc/
H A Dsancov.cc59 tree to_type = NULL_TREE; local
71 to_type = unsigned_char_type_node;
76 to_type = uint16_type_node;
81 to_type = uint32_type_node;
86 to_type = uint64_type_node;
95 to_type = float_type_node;
100 to_type = double_type_node;
104 if (to_type != NULL_TREE)
108 if (!useless_type_conversion_p (to_type, type))
111 lhs = fold_convert (to_type, lh
[all...]
H A Dgimple-builder.cc107 build_type_cast (tree to_type, tree op, tree lhs) argument
110 lhs = make_ssa_name (to_type);
115 build_type_cast (tree to_type, gimple *op, tree lhs) argument
117 return build_type_cast (to_type, gimple_assign_lhs (op), lhs);
/netbsd-current/external/gpl3/gcc.old/dist/gcc/
H A Dgimple-builder.c107 build_type_cast (tree to_type, tree op, tree lhs) argument
110 lhs = make_ssa_name (to_type);
115 build_type_cast (tree to_type, gimple *op, tree lhs) argument
117 return build_type_cast (to_type, gimple_assign_lhs (op), lhs);
H A Dsancov.c59 tree to_type = NULL_TREE; local
71 to_type = unsigned_char_type_node;
76 to_type = uint16_type_node;
81 to_type = uint32_type_node;
86 to_type = uint64_type_node;
95 to_type = float_type_node;
100 to_type = double_type_node;
104 if (to_type != NULL_TREE)
108 if (!useless_type_conversion_p (to_type, type))
111 lhs = fold_convert (to_type, lh
[all...]
/netbsd-current/external/bsd/atf/dist/atf-c++/detail/
H A Dtext_test.cpp350 ATF_TEST_CASE(to_type); variable
351 ATF_TEST_CASE_HEAD(to_type)
353 set_md_var("descr", "Tests the to_type function");
355 ATF_TEST_CASE_BODY(to_type)
357 using atf::text::to_type;
359 ATF_REQUIRE_EQ(to_type< int >("0"), 0);
360 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234);
361 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" "));
362 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a"));
363 ATF_REQUIRE_THROW(std::runtime_error, to_type< in
[all...]
H A Dtext.hpp140 to_type(const std::string& str) function in namespace:atf::text
H A Dtext.cpp159 return to_type< int64_t >(str) * multiplier;
/netbsd-current/external/bsd/atf/dist/tools/
H A Dtext_test.cpp350 ATF_TEST_CASE(to_type); variable
351 ATF_TEST_CASE_HEAD(to_type)
353 set_md_var("descr", "Tests the to_type function");
355 ATF_TEST_CASE_BODY(to_type)
357 using tools::text::to_type;
359 ATF_REQUIRE_EQ(to_type< int >("0"), 0);
360 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234);
361 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" "));
362 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a"));
363 ATF_REQUIRE_THROW(std::runtime_error, to_type< in
[all...]
H A Dtext.hpp140 to_type(const std::string& str) function in namespace:tools::text
H A Dtext.cpp157 return to_type< int64_t >(str) * multiplier;
H A Dui.cpp58 width = tools::text::to_type< size_t >(cols);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/
H A Dtarget-float.h52 gdb_byte *to, const struct type *to_type);
H A Dcp-abi.h162 int cplus_method_ptr_size (struct type *to_type);
H A Dcp-abi.c138 cplus_method_ptr_size (struct type *to_type) argument
142 return (*current_cp_abi.method_ptr_size) (to_type);
H A Dtarget-float.c53 gdb_byte *to, const struct type *to_type) const = 0;
554 gdb_byte *to, const struct type *to_type) const override;
1072 const struct type *to_type) const
1076 to_target (to_type, &host_float, to);
1184 gdb_byte *to, const struct type *to_type) const override;
1637 const struct type *to_type) const
1639 gdb_mpfr from_tmp (from_type), to_tmp (to_type);
1642 to_target (to_type, to_tmp, to);
1908 gdb_byte *to, const struct type *to_type) const override;
2125 gdb_byte *to, const struct type *to_type) cons
2440 target_float_convert(const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type) argument
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/
H A Dtarget-float.h52 gdb_byte *to, const struct type *to_type);
H A Dcp-abi.h162 int cplus_method_ptr_size (struct type *to_type);
H A Dcp-abi.c138 cplus_method_ptr_size (struct type *to_type) argument
142 return (*current_cp_abi.method_ptr_size) (to_type);
H A Dtarget-float.c53 gdb_byte *to, const struct type *to_type) const = 0;
554 gdb_byte *to, const struct type *to_type) const override;
1072 const struct type *to_type) const
1076 to_target (to_type, &host_float, to);
1184 gdb_byte *to, const struct type *to_type) const override;
1637 const struct type *to_type) const
1639 gdb_mpfr from_tmp (from_type), to_tmp (to_type);
1642 to_target (to_type, to_tmp, to);
1908 gdb_byte *to, const struct type *to_type) const override;
2125 gdb_byte *to, const struct type *to_type) cons
2440 target_float_convert(const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type) argument
[all...]
/netbsd-current/external/bsd/kyua-cli/dist/utils/
H A Dunits.cpp100 count = text::to_type< double >(str);
/netbsd-current/external/bsd/kyua-cli/dist/engine/
H A Dconfig.cpp174 uid = text::to_type< int >(raw_value);
/netbsd-current/external/bsd/kyua-cli/dist/utils/cmdline/
H A Doptions.cpp312 (void)text::to_type< int >(raw_value);
332 return text::to_type< int >(raw_value);

Completed in 466 milliseconds

1234