Home
last modified time | relevance | path

Searched refs:to_str (Results 1 – 25 of 47) sorted by relevance

12

/third_party/boost/libs/convert/test/
Dperformance.cpp59 template<typename S, typename Type, typename Cnv> static double to_str (Cnv const&);
176 local::to_str(Converter const& try_converter) in to_str() function in local
273 local::to_str<std::string, int>(boost::cnv::spirit()), in main()
274 local::to_str<std::string, int>(boost::cnv::strtol()), in main()
275 local::to_str<std::string, int>(boost::cnv::lexical_cast()), in main()
276 local::to_str<std::string, int>(boost::cnv::printf()), in main()
277 local::to_str<std::string, int>(boost::cnv::cstream())); in main()
279 local::to_str<std::string, long int>(boost::cnv::spirit()), in main()
280 local::to_str<std::string, long int>(boost::cnv::strtol()), in main()
281 local::to_str<std::string, long int>(boost::cnv::lexical_cast()), in main()
[all …]
/third_party/boost/libs/lexical_cast/test/
Dlexical_cast_integral_types_test.cpp193 std::basic_string<CharT> to_str(T t) in to_str() function
210 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
213 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
218 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
232 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
237 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
242 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
250 BOOST_CHECK(lexical_cast<string_type>(t) == to_str<CharT>(t)); in test_conversion_from_integral_to_string()
262 string_type const zero = to_str<CharT>(0); in test_conversion_from_string_to_integral()
263 string_type const nine = to_str<CharT>(9); in test_conversion_from_string_to_integral()
[all …]
Dlexical_cast_float_types_test.cpp67 std::basic_string<CharT> to_str(T t) in to_str() function
92 …BOOST_CHECK_CLOSE_FRACTION(lexical_cast<T>( to_str< char >(100000) ), 100000, (boost::math::tools:… in test_conversion_from_to_float_for_locale()
93 …BOOST_CHECK_CLOSE_FRACTION(lexical_cast<T>( to_str< char >(10000000u) ), 10000000u, (boost::math::… in test_conversion_from_to_float_for_locale()
94 …BOOST_CHECK_CLOSE_FRACTION(lexical_cast<T>( to_str< char >(100) ), 100, (boost::math::tools::epsil… in test_conversion_from_to_float_for_locale()
96 …BOOST_CHECK_CLOSE_FRACTION(lexical_cast<T>( to_str< wchar_t >(100000) ), 100000, (boost::math::too… in test_conversion_from_to_float_for_locale()
97 …BOOST_CHECK_CLOSE_FRACTION(lexical_cast<T>( to_str< wchar_t >(10000000u) ), 10000000u, (boost::mat… in test_conversion_from_to_float_for_locale()
98 …BOOST_CHECK_CLOSE_FRACTION(lexical_cast<T>( to_str< wchar_t >(100) ), 100, (boost::math::tools::ep… in test_conversion_from_to_float_for_locale()
/third_party/mindspore/tests/ut/python/dataset/
Dtest_text_jieba_tokenizer.py19 from mindspore.dataset.text import JiebaMode, to_str
60 ret = to_str(i["text"])
73 ret = to_str(i["text"])
86 ret = to_str(i["text"])
101 ret = to_str(i["text"])
116 ret = to_str(i["text"])
140 ret = to_str(i["text"])
158 ret = to_str(i["text"])
177 ret = to_str(i["text"])
193 ret = to_str(i["text"])
[all …]
Dtest_tensor_string.py20 from mindspore.dataset.text import to_str, to_bytes
93 s = to_str(b)
131 np.testing.assert_array_equal(line[i], to_str(d["line"]))
132 np.testing.assert_array_equal(words[i], to_str(d["words"]))
133 np.testing.assert_array_equal(chinese[i], to_str(d["chinese"]))
143 np.testing.assert_array_equal(line[i], to_str(d["line"]))
144 np.testing.assert_array_equal(words[i], to_str(d["words"]))
145 np.testing.assert_array_equal(chinese[i], to_str(d["chinese"]))
160 np.testing.assert_array_equal(line[i], to_str(d["line"]))
161 np.testing.assert_array_equal(words[i].reshape([2, 2]), to_str(d["words"]))
[all …]
Dtest_text_tokenizer.py49 token = text.to_str(i['text']).tolist()
72 token = text.to_str(i['token']).tolist()
94 token = text.to_str(i['text']).tolist()
118 token = text.to_str(i['token']).tolist()
142 token = text.to_str(i['text']).tolist()
161 token = text.to_str(i['text']).tolist()
185 token = text.to_str(i['token']).tolist()
212 token = text.to_str(i['token']).tolist()
232 token = text.to_str(i['text']).tolist()
250 out_texts.append(text.to_str(i['text']).tolist())
[all …]
Dtest_sentencepiece_tokenizer.py19 from mindspore.dataset.text import SentencePieceModel, to_str, SPieceTokenizerOutType
39 ret = to_str(i["text"])
51 ret = to_str(i["text"])
64 ret = to_str(i["text"])
76 ret = to_str(i["text"])
101 ret = to_str(i["text"])
127 ret = to_str(i["text"])
146 ret = to_str(i["text"])
156 ret = to_str(i["text"])
Dtest_datasets_voc.py30 assert text.to_str(item["filename"]) == IMAGE_ID[num]
43 assert text.to_str(item["filename"]) == IMAGE_ID[num]
106 assert text.to_str(item[2]) == IMAGE_ID[num]
119 assert text.to_str(item[0]) == IMAGE_ID[num]
132 assert text.to_str(item[0]) == IMAGE_ID[num]
Dtest_text_basic_tokenizer.py86 token = text.to_str(i['text'])
113 token = text.to_str(i['token'])
Dtest_text_wordpiece_tokenizer.py112 token = text.to_str(i['text'])
134 token = text.to_str(i['token'])
Dtest_python_tokenizer.py45 s = text.to_str(i['text']).tolist()
Dtest_text_bert_tokenizer.py192 token = text.to_str(i['text'])
221 token = text.to_str(i['token'])
/third_party/boost/libs/hana/example/tutorial/
Dalgorithms.cpp22 auto to_str = [](auto const& x) { in main() local
31 hana::reverse(hana::transform(xs, to_str)) == hana::make_tuple("bcde", "a", "2.2", "1") in main()
37 hana::transform(xs, to_str) // <-- copy into reverse(...) here? in main()
43 hana::transform(xs, to_str) // <-- nope, move from the temporary instead! in main()
/third_party/boost/boost/convert/
Dstrtol.hpp55 …template <typename char_type> cnv::range<char_type*> to_str ( int_type v, char_type* buf) const … in to_str() function
56 …template <typename char_type> cnv::range<char_type*> to_str ( uint_type v, char_type* buf) const … in to_str() function
57 …template <typename char_type> cnv::range<char_type*> to_str ( lint_type v, char_type* buf) const … in to_str() function
58 …template <typename char_type> cnv::range<char_type*> to_str ( ulint_type v, char_type* buf) const … in to_str() function
59 …template <typename char_type> cnv::range<char_type*> to_str ( llint_type v, char_type* buf) const … in to_str() function
60 …template <typename char_type> cnv::range<char_type*> to_str (ullint_type v, char_type* buf) const … in to_str() function
61 template <typename char_type> cnv::range<char_type*> to_str ( dbl_type v, char_type* buf) const;
123 boost::cnv::strtol::to_str(double value, char_type* buf) const in to_str() function in boost::cnv::strtol
Dstream.hpp78 BOOST_CNV_STRING_ENABLE(type const& v, optional<string_type>& s) const { to_str(v, s); } in BOOST_CNV_STRING_ENABLE()
141 …template<typename string_type, typename in_type> void to_str(in_type const&, optional<string_type…
150 boost::cnv::basic_stream<char_type>::to_str( in to_str() function in boost::cnv::basic_stream
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglsl.c718 const gchar *from_str = NULL, *to_str = NULL; in _mangle_texture_access() local
736 to_str = "texture"; in _mangle_texture_access()
739 to_str = "texture2D"; in _mangle_texture_access()
741 to_str = "texture2DRect"; in _mangle_texture_access()
743 to_str = "texture2D"; in _mangle_texture_access()
749 tmp = g_regex_replace_literal (regex, str, -1, 0, to_str, 0, NULL); in _mangle_texture_access()
757 from_str, to_str); in _mangle_texture_access()
768 const gchar *from_str = NULL, *to_str = NULL; in _mangle_sampler_type() local
781 to_str = "sampler2D"; in _mangle_sampler_type()
783 to_str = "sampler2DRect"; in _mangle_sampler_type()
[all …]
/third_party/python/Tools/stringbench/
Dstringbench.py1216 to_str = STR("\t")
1219 s_replace(from_str, to_str)
1227 to_str = STR("\t")
1230 pat_sub(to_str, s)
1237 to_str = STR(" ")
1240 s_replace(from_str, to_str)
1248 to_str = STR(" ")
1251 pat_sub(to_str, s)
1259 to_str = STR("ATT")
1262 seq_replace(from_str, to_str)
[all …]
/third_party/skia/third_party/externals/tint/src/diagnostic/
Dformatter.cc28 const char* to_str(Severity severity) { in to_str() function
44 std::string to_str(const Source::Location& location) { in to_str() function
147 prefix.emplace_back(TextAndColor{src.file_path + ":" + to_str(rng.begin), in format()
153 prefix.emplace_back(TextAndColor{to_str(rng.begin), Color::kDefault}); in format()
173 TextAndColor{to_str(diag.severity), severity_color, true}); in format()
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dlexer_test.cc45 EXPECT_EQ(t.to_str(), "ident"); in TEST_F()
64 EXPECT_EQ(t.to_str(), "ident1"); in TEST_F()
72 EXPECT_EQ(t.to_str(), "ident2"); in TEST_F()
89 EXPECT_EQ(t.to_str(), "ident"); in TEST_F()
107 EXPECT_EQ(t.to_str(), "ident"); in TEST_F()
124 EXPECT_EQ(t.to_str(), "unterminated block comment"); in TEST_F()
271 EXPECT_EQ(t.to_str(), GetParam()); in TEST_P()
351 EXPECT_EQ(t.to_str(), "i32 (0x80000000) too large"); in TEST_F()
360 EXPECT_EQ(t.to_str(), "i32 (-0x8000000F) too small"); in TEST_F()
370 EXPECT_EQ(t.to_str(), in TEST_F()
[all …]
/third_party/boost/libs/locale/src/win32/
Dnumeric.cpp132 to_str(np.thousands_sep,thousands_sep_); in num_punct_win()
133 to_str(np.decimal_point,decimal_point_); in num_punct_win()
141 void to_str(std::wstring &s1,std::wstring &s2) in to_str() function in boost::locale::impl_win::num_punct_win
146 void to_str(std::wstring &s1,std::string &s2) in to_str() function in boost::locale::impl_win::num_punct_win
/third_party/mindspore/mindspore/dataset/text/
D__init__.py30 from .utils import to_str, to_bytes, JiebaMode, Vocab, NormalizeForm, SentencePieceVocab, SentenceP…
/third_party/boost/libs/locale/src/posix/
Dnumeric.cpp414 to_str(np.thousands_sep,thousands_sep_,lc); in num_punct_posix()
415 to_str(np.decimal_point,decimal_point_,lc); in num_punct_posix()
422 void to_str(std::string &s1,std::string &s2,locale_t /*lc*/) in to_str() function in boost::locale::impl_posix::num_punct_posix
426 void to_str(std::string &s1,std::wstring &s2,locale_t lc) in to_str() function in boost::locale::impl_posix::num_punct_posix
/third_party/skia/third_party/externals/tint/src/
Dsymbol_test.cc26 EXPECT_EQ("$1", sym.to_str()); in TEST_F()
Dsymbol.cc53 std::string Symbol::to_str() const { in to_str() function in tint::Symbol
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dusage.h110 std::string to_str() const;

12