• Home
  • Raw
  • Download

Lines Matching refs:src_len

26                     size_t src_len,  in ConvertUnicode()  argument
30 int32_t src_len32 = static_cast<int32_t>(src_len); in ConvertUnicode()
48 bool WideToUTF8(const wchar_t* src, size_t src_len, std::string* output) { in WideToUTF8() argument
49 if (IsStringASCII(std::wstring(src, src_len))) { in WideToUTF8()
50 output->assign(src, src + src_len); in WideToUTF8()
53 PrepareForUTF8Output(src, src_len, output); in WideToUTF8()
54 return ConvertUnicode(src, src_len, output); in WideToUTF8()
69 bool UTF8ToWide(const char* src, size_t src_len, std::wstring* output) { in UTF8ToWide() argument
70 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToWide()
71 output->assign(src, src + src_len); in UTF8ToWide()
74 PrepareForUTF16Or32Output(src, src_len, output); in UTF8ToWide()
75 return ConvertUnicode(src, src_len, output); in UTF8ToWide()
95 bool WideToUTF16(const wchar_t* src, size_t src_len, string16* output) { in WideToUTF16() argument
96 output->assign(src, src_len); in WideToUTF16()
104 bool UTF16ToWide(const char16* src, size_t src_len, std::wstring* output) { in UTF16ToWide() argument
105 output->assign(src, src_len); in UTF16ToWide()
115 bool WideToUTF16(const wchar_t* src, size_t src_len, string16* output) { in WideToUTF16() argument
119 output->reserve(src_len); in WideToUTF16()
120 return ConvertUnicode(src, src_len, output); in WideToUTF16()
129 bool UTF16ToWide(const char16* src, size_t src_len, std::wstring* output) { in UTF16ToWide() argument
133 output->reserve(src_len); in UTF16ToWide()
134 return ConvertUnicode(src, src_len, output); in UTF16ToWide()
149 bool UTF8ToUTF16(const char* src, size_t src_len, string16* output) { in UTF8ToUTF16() argument
150 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToUTF16()
151 output->assign(src, src + src_len); in UTF8ToUTF16()
154 PrepareForUTF16Or32Output(src, src_len, output); in UTF8ToUTF16()
155 return ConvertUnicode(src, src_len, output); in UTF8ToUTF16()
172 bool UTF16ToUTF8(const char16* src, size_t src_len, std::string* output) { in UTF16ToUTF8() argument
173 if (IsStringASCII(StringPiece16(src, src_len))) { in UTF16ToUTF8()
174 output->assign(src, src + src_len); in UTF16ToUTF8()
177 PrepareForUTF8Output(src, src_len, output); in UTF16ToUTF8()
178 return ConvertUnicode(src, src_len, output); in UTF16ToUTF8()
197 bool UTF8ToUTF16(const char* src, size_t src_len, string16* output) { in UTF8ToUTF16() argument
198 return UTF8ToWide(src, src_len, output); in UTF8ToUTF16()
205 bool UTF16ToUTF8(const char16* src, size_t src_len, std::string* output) { in UTF16ToUTF8() argument
206 return WideToUTF8(src, src_len, output); in UTF16ToUTF8()