Home
last modified time | relevance | path

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

/external/google-breakpad/src/common/windows/
Dstring_utils.cc95 size_t mbs_length; in safe_wcstombs() local
99 if ((err = wcstombs_s(&mbs_length, NULL, 0, wcs.c_str(), _TRUNCATE)) != 0) { in safe_wcstombs()
102 assert(mbs_length > 0); in safe_wcstombs()
104 if ((mbs_length = wcstombs(NULL, wcs.c_str(), wcs.length())) == (size_t)-1) { in safe_wcstombs()
109 ++mbs_length; in safe_wcstombs()
112 std::vector<char> mbs_v(mbs_length); in safe_wcstombs()
116 if ((err = wcstombs_s(NULL, &mbs_v[0], mbs_length, wcs.c_str(), in safe_wcstombs()
126 mbs_v[mbs_length - 1] = '\0'; in safe_wcstombs()