Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/atf/dist/atf-c++/detail/
H A Dtext_test.cpp313 ATF_TEST_CASE(to_bytes);
314 ATF_TEST_CASE_HEAD(to_bytes) in ATF_TEST_CASE_HEAD() argument
318 ATF_TEST_CASE_BODY(to_bytes) in ATF_TEST_CASE_BODY() argument
320 using atf::text::to_bytes; in ATF_TEST_CASE_BODY()
322 ATF_REQUIRE_EQ(0, to_bytes("0")); in ATF_TEST_CASE_BODY()
323 ATF_REQUIRE_EQ(12345, to_bytes("12345")); in ATF_TEST_CASE_BODY()
324 ATF_REQUIRE_EQ(2 * 1024, to_bytes("2k")); in ATF_TEST_CASE_BODY()
325 ATF_REQUIRE_EQ(4 * 1024 * 1024, to_bytes("4m")); in ATF_TEST_CASE_BODY()
326 ATF_REQUIRE_EQ(int64_t(8) * 1024 * 1024 * 1024, to_bytes("8g")); in ATF_TEST_CASE_BODY()
327 ATF_REQUIRE_EQ(int64_t(16) * 1024 * 1024 * 1024 * 1024, to_bytes("16t")); in ATF_TEST_CASE_BODY()
[all …]
H A Dtext.hpp107 int64_t to_bytes(std::string);
H A Dtext.cpp138 impl::to_bytes(std::string str) in to_bytes() function in impl
/netbsd-src/external/bsd/atf/dist/tools/
H A Dtext_test.cpp313 ATF_TEST_CASE(to_bytes);
314 ATF_TEST_CASE_HEAD(to_bytes) in ATF_TEST_CASE_HEAD() argument
318 ATF_TEST_CASE_BODY(to_bytes) in ATF_TEST_CASE_BODY() argument
320 using tools::text::to_bytes; in ATF_TEST_CASE_BODY()
322 ATF_REQUIRE_EQ(0, to_bytes("0")); in ATF_TEST_CASE_BODY()
323 ATF_REQUIRE_EQ(12345, to_bytes("12345")); in ATF_TEST_CASE_BODY()
324 ATF_REQUIRE_EQ(2 * 1024, to_bytes("2k")); in ATF_TEST_CASE_BODY()
325 ATF_REQUIRE_EQ(4 * 1024 * 1024, to_bytes("4m")); in ATF_TEST_CASE_BODY()
326 ATF_REQUIRE_EQ(int64_t(8) * 1024 * 1024 * 1024, to_bytes("8g")); in ATF_TEST_CASE_BODY()
327 ATF_REQUIRE_EQ(int64_t(16) * 1024 * 1024 * 1024 * 1024, to_bytes("16t")); in ATF_TEST_CASE_BODY()
[all …]
H A Dtext.hpp107 int64_t to_bytes(std::string);
H A Dtext.cpp136 impl::to_bytes(std::string str) in to_bytes() function in impl
H A Drequirements.cpp152 const int64_t needed = tools::text::to_bytes(raw_memory); in check_memory()
H A Dtest-program.cpp464 (void)tools::text::to_bytes(value); in validate_and_insert()
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/
H A Dlocale_conv.h330 to_bytes(_Elem __wchar) in _GLIBCXX_VISIBILITY()
333 return to_bytes(__wchars, __wchars+1); in _GLIBCXX_VISIBILITY()
337 to_bytes(const _Elem* __ptr) in _GLIBCXX_VISIBILITY()
339 return to_bytes(__ptr, __ptr+wide_string::traits_type::length(__ptr)); in _GLIBCXX_VISIBILITY()
343 to_bytes(const wide_string& __wstr) in _GLIBCXX_VISIBILITY()
346 return to_bytes(__ptr, __ptr + __wstr.size()); in _GLIBCXX_VISIBILITY()
350 to_bytes(const _Elem* __first, const _Elem* __last) in _GLIBCXX_VISIBILITY()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
H A Dlocale_conv.h352 to_bytes(_Elem __wchar) in _GLIBCXX_VISIBILITY()
355 return to_bytes(__wchars, __wchars+1); in _GLIBCXX_VISIBILITY()
359 to_bytes(const _Elem* __ptr) in _GLIBCXX_VISIBILITY()
361 return to_bytes(__ptr, __ptr+wide_string::traits_type::length(__ptr)); in _GLIBCXX_VISIBILITY()
365 to_bytes(const wide_string& __wstr) in _GLIBCXX_VISIBILITY()
368 return to_bytes(__ptr, __ptr + __wstr.size()); in _GLIBCXX_VISIBILITY()
372 to_bytes(const _Elem* __first, const _Elem* __last) in _GLIBCXX_VISIBILITY()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lit/lit/
H A DTestRunner.py24 from lit.util import to_bytes, to_string, to_unicode
314 encode = lit.util.to_bytes
336 arg = lit.util.to_bytes(arg)
376 dir = to_unicode(dir) if kIsWindows else to_bytes(dir)
377 cwd = to_unicode(cwd) if kIsWindows else to_bytes(cwd)
421 path = to_unicode(path) if kIsWindows else to_bytes(path)
422 cwd = to_unicode(cwd) if kIsWindows else to_bytes(cwd)
569 if kIsWindows else to_bytes(redir_filename)
1047 to_bytes("(%s)(.*)\n" % ("|".join(re.escape(k) for k in keywords),)))
1055 if not data.endswith(to_bytes('\n')):
[all …]
H A DProgressBar.py8 def to_bytes(str): function
139 return curses.tparm(to_bytes(arg), index).decode('utf-8') or ''
H A Dutil.py42 def to_bytes(s): function
337 input = to_bytes(input)
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/libcxx/
H A Dutil.py21 def to_bytes(str): function
30 return to_bytes(bytes)
198 input = to_bytes(input)
H A Dcompiler.py296 cmd, input=libcxx.util.to_bytes('#error\n'))
/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-format/
H A Dgit-clang-format407 p.stdin.write(to_bytes('%s\0' % line))
573 def to_bytes(str_input): function
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/experimental/
H A Dinternet225 to_bytes() const noexcept
386 constexpr bytes_type to_bytes() const noexcept { return _M_bytes; }
697 const auto __v6b = __a.to_bytes();
766 const address_v4::bytes_type __v4b = __a.to_bytes();
1316 address_v6::bytes_type __bytes = _M_addr.to_bytes();
1331 address_v6::bytes_type __bytes = _M_addr.to_bytes();
2311 const auto __addr = __grp.to_bytes();
2500 { return _Hash_impl::hash(__a.to_bytes()); }
2508 { return _Hash_impl::hash(__a.to_bytes()); }
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/experimental/
H A Dinternet187 to_bytes() const noexcept
339 constexpr bytes_type to_bytes() const noexcept { return _M_bytes; }
646 const auto __v6b = __a.to_bytes();
711 const address_v4::bytes_type __v4b = __a.to_bytes();
2431 { return _Hash_impl::hash(__a.to_bytes()); }
2439 { return _Hash_impl::hash(__a.to_bytes()); }
/netbsd-src/external/apache2/llvm/dist/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);
3701 byte_string to_bytes(_Elem __wchar)
3702 {return to_bytes(&__wchar, &__wchar+1);}
3704 byte_string to_bytes(const _Elem* __wptr)
3705 {return to_bytes(__wptr, __wptr + char_traits<_Elem>::length(__wptr));}
3707 byte_string to_bytes(const wide_string& __wstr)
3708 {return to_bytes(__wstr.data(), __wstr.data() + __wstr.size());}
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dsysinfo.cc386 str = converter.to_bytes(wStr); in GetSystemName()
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/
H A DChangeLog-20153725 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new