Home
last modified time | relevance | path

Searched refs:to_bytes (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/contrib/atf/atf-c++/detail/
H A Dtext_test.cpp309 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()
327 to_bytes("12d")); in ATF_TEST_CASE_BODY()
328 ATF_REQUIRE_THROW(std::runtime_error, to_bytes(" ")); in ATF_TEST_CASE_BODY()
[all …]
H A Dtext.hpp103 int64_t to_bytes(std::string);
H A Dtext.cpp134 impl::to_bytes(std::string str) in to_bytes() function in impl
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dmath.shlib68 function to_bytes
H A Dlibtest.shlib2953 typeset file_bytes=$(to_bytes $megs)
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/
H A DEditline.cpp461 lines.AppendString(m_utf8conv.to_bytes(line)); in GetInputAsStringList()
653 lines.AppendString(m_utf8conv.to_bytes(new_line_fragment)); in BreakLineCommand()
1545 line = m_utf8conv.to_bytes(SplitLines(input)[0]); in GetLine()
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A Dlocale112 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);
3156 …_LIBCPP_HIDE_FROM_ABI byte_string to_bytes(_Elem __wchar) { return to_bytes(&__wchar, &__wchar + 1…
3157 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __wptr) {
3158 return to_bytes(__wptr, __wptr + char_traits<_Elem>::length(__wptr));
3160 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const wide_string& __wstr) {
3161 return to_bytes(__wstr.data(), __wstr.data() + __wstr.size());
3163 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __first, const _Elem* __last);
[all …]