Searched refs:to_bytes (Results 1 – 7 of 7) sorted by relevance
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | text_test.cpp | 309 ATF_TEST_CASE(to_bytes); 310 ATF_TEST_CASE_HEAD(to_bytes) in ATF_TEST_CASE_HEAD() argument 314 ATF_TEST_CASE_BODY(to_bytes) in ATF_TEST_CASE_BODY() argument 316 using atf::text::to_bytes; in ATF_TEST_CASE_BODY() 318 ATF_REQUIRE_EQ(0, to_bytes("0")); in ATF_TEST_CASE_BODY() 319 ATF_REQUIRE_EQ(12345, to_bytes("12345")); in ATF_TEST_CASE_BODY() 320 ATF_REQUIRE_EQ(2 * 1024, to_bytes("2k")); in ATF_TEST_CASE_BODY() 321 ATF_REQUIRE_EQ(4 * 1024 * 1024, to_bytes("4m")); in ATF_TEST_CASE_BODY() 322 ATF_REQUIRE_EQ(int64_t(8) * 1024 * 1024 * 1024, to_bytes("8g")); in ATF_TEST_CASE_BODY() 323 ATF_REQUIRE_EQ(int64_t(16) * 1024 * 1024 * 1024 * 1024, to_bytes("16t")); in ATF_TEST_CASE_BODY() [all …]
|
H A D | text.hpp | 103 int64_t to_bytes(std::string);
|
H A D | text.cpp | 134 impl::to_bytes(std::string str) in to_bytes() function in impl
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
H A D | math.shlib | 68 function to_bytes
|
H A D | libtest.shlib | 2953 typeset file_bytes=$(to_bytes $megs)
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | Editline.cpp | 447 lines.AppendString(m_utf8conv.to_bytes(line)); in GetInputAsStringList() 639 lines.AppendString(m_utf8conv.to_bytes(new_line_fragment)); in BreakLineCommand() 1505 line = m_utf8conv.to_bytes(SplitLines(input)[0]); in GetLine()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | locale | 112 byte_string to_bytes(Elem wchar); 113 byte_string to_bytes(const Elem* wptr); 114 byte_string to_bytes(const wide_string& wstr); 115 byte_string to_bytes(const Elem* first, const Elem* last); 3187 …_LIBCPP_HIDE_FROM_ABI byte_string to_bytes(_Elem __wchar) { return to_bytes(&__wchar, &__wchar + 1… 3188 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __wptr) { 3189 return to_bytes(__wptr, __wptr + char_traits<_Elem>::length(__wptr)); 3191 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const wide_string& __wstr) { 3192 return to_bytes(__wstr.data(), __wstr.data() + __wstr.size()); 3194 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __first, const _Elem* __last); [all …]
|