/bionic/libc/upstream-openbsd/lib/libc/locale/ |
btowc.c | 36 mbstate_t mbs; local 47 memset(&mbs, 0, sizeof(mbs)); 49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1)
|
mbstowcs.c | 38 mbstate_t mbs; local 41 memset(&mbs, 0, sizeof(mbs)); 43 return (mbsrtowcs(pwcs, &sp, n, &mbs));
|
wcstombs.c | 37 mbstate_t mbs; local 40 memset(&mbs, 0, sizeof(mbs)); 42 return (wcsrtombs(s, &pwcsp, n, &mbs));
|
wctob.c | 36 mbstate_t mbs; local 39 memset(&mbs, 0, sizeof(mbs)); 40 if (c == WEOF || wcrtomb(buf, c, &mbs) != 1)
|
wctomb.c | 36 static mbstate_t mbs; local 41 memset(&mbs, 0, sizeof(mbs)); 44 if ((rval = wcrtomb(s, wchar, &mbs)) == (size_t)-1)
|
mbtowc.c | 38 static mbstate_t mbs; local 43 memset(&mbs, 0, sizeof(mbs)); 46 rval = mbrtowc(pwc, s, n, &mbs);
|
mbrlen.c | 34 static mbstate_t mbs; local 37 ps = &mbs;
|
/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
char16_t_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char32_t_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
wchar_t_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char16_t_unshift.pass.cpp | 29 std::mbstate_t mbs = {}; local 31 assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv);
|
char32_t_unshift.pass.cpp | 29 std::mbstate_t mbs = {}; local 31 assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv);
|
char_unshift.pass.cpp | 29 std::mbstate_t mbs = {}; local 31 assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv);
|
wchar_t_unshift.pass.cpp | 31 std::mbstate_t mbs = {}; local 33 assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::ok);
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
char16_t_length.pass.cpp | 25 std::mbstate_t mbs = {0}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char32_t_length.pass.cpp | 25 std::mbstate_t mbs = {0}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char_length.pass.cpp | 25 std::mbstate_t mbs = {0}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
wchar_t_length.pass.cpp | 25 std::mbstate_t mbs = {0}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char16_t_unshift.pass.cpp | 29 std::mbstate_t mbs = {0}; local 31 assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv);
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
char16_t_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char32_t_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
wchar_t_length.pass.cpp | 25 std::mbstate_t mbs = {}; local 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
/external/google-breakpad/src/common/windows/ |
string_utils.cc | 48 bool WindowsStringUtils::safe_mbstowcs(const string &mbs, wstring *wcs) { 56 if ((err = mbstowcs_s(&wcs_length, NULL, 0, mbs.c_str(), _TRUNCATE)) != 0) { 61 if ((wcs_length = mbstowcs(NULL, mbs.c_str(), mbs.length())) == (size_t)-1) { 73 if ((err = mbstowcs_s(NULL, &wcs_v[0], wcs_length, mbs.c_str(), 78 if (mbstowcs(&wcs_v[0], mbs.c_str(), mbs.length()) == (size_t)-1) { 91 bool WindowsStringUtils::safe_wcstombs(const wstring &wcs, string *mbs) { 92 assert(mbs); 129 *mbs = &mbs_v[0] [all...] |