Searched refs:num_chars (Results 1 – 2 of 2) sorted by relevance
1485 std::string WideStringToUtf8(const wchar_t* str, int num_chars) { in WideStringToUtf8() argument1486 if (num_chars == -1) in WideStringToUtf8()1487 num_chars = static_cast<int>(wcslen(str)); in WideStringToUtf8()1490 for (int i = 0; i < num_chars; ++i) { in WideStringToUtf8()1495 } else if (i + 1 < num_chars && IsUtf16SurrogatePair(str[i], str[i + 1])) { in WideStringToUtf8()
247 GTEST_API_ std::string WideStringToUtf8(const wchar_t* str, int num_chars);