Home
last modified time | relevance | path

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

/external/libchrome/base/strings/
Dold_utf_string_conversions.cc16 using base::IsStringASCII;
84 if (IsStringASCII(std::wstring(src, src_len))) { in WideToUTF8()
94 if (IsStringASCII(wide)) { in WideToUTF8()
105 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToWide()
115 if (IsStringASCII(utf8)) { in UTF8ToWide()
185 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToUTF16()
195 if (IsStringASCII(utf8)) { in UTF8ToUTF16()
208 if (IsStringASCII(StringPiece16(src, src_len))) { in UTF16ToUTF8()
241 if (IsStringASCII(utf16)) in UTF16ToUTF8()
253 DCHECK(IsStringASCII(ascii)) << ascii; in ASCIIToUTF16()
[all …]
Dstring_util_unittest.cc391 TEST(StringUtilTest, IsStringASCII) { in TEST() argument
410 EXPECT_TRUE(IsStringASCII(StringPiece(char_ascii + offset, len))); in TEST()
413 EXPECT_FALSE(IsStringASCII(StringPiece(char_ascii + offset, len))); in TEST()
425 EXPECT_TRUE(IsStringASCII(StringPiece16(char16_ascii + offset, len))); in TEST()
429 IsStringASCII(StringPiece16(char16_ascii + offset, len))); in TEST()
434 IsStringASCII(StringPiece16(char16_ascii + offset, len))); in TEST()
444 EXPECT_TRUE(IsStringASCII(wchar_ascii.substr(0, len))); in TEST()
448 IsStringASCII(wchar_ascii.substr(0, len))); in TEST()
452 IsStringASCII(wchar_ascii.substr(0, len))); in TEST()
457 IsStringASCII(wchar_ascii.substr(0, len))); in TEST()
[all …]
Dutf_string_conversions.cc177 if (IsStringASCII(src_str)) { in UTFConversion()
324 DCHECK(IsStringASCII(ascii)) << ascii; in ASCIIToUTF16()
329 DCHECK(IsStringASCII(utf16)) << UTF16ToUTF8(utf16); in UTF16ToASCII()
Dstring_util.h286 BASE_EXPORT bool IsStringASCII(StringPiece str);
287 BASE_EXPORT bool IsStringASCII(StringPiece16 str);
289 BASE_EXPORT bool IsStringASCII(WStringPiece str);
Dutf_string_conversions_fuzzer.cc49 if (base::IsStringASCII(string_piece_input)) { in LLVMFuzzerTestOneInput()
Dstring_util.cc500 bool IsStringASCII(StringPiece str) { in IsStringASCII() function
504 bool IsStringASCII(StringPiece16 str) { in IsStringASCII() function
509 bool IsStringASCII(WStringPiece str) { in IsStringASCII() function
/external/libchrome/base/
Dnative_library_posix.cc62 DCHECK(IsStringASCII(name)); in GetNativeLibraryName()
Dfeature_list.cc74 return IsStringASCII(name) && name.find_first_of(",<*") == std::string::npos; in IsValidFeatureOrFieldTrialName()
Dcommand_line.cc295 if (!IsStringASCII(value)) { in GetSwitchValueASCII()
Dvalues.cc879 if (!IsStringASCII(out)) { in GetStringASCII()
/external/libchrome/base/metrics/
Dpersistent_histogram_storage.cc30 DCHECK(IsStringASCII(allocator_name)); in PersistentHistogramStorage()
/external/libchrome/base/files/
Dfile_path.cc423 DCHECK(IsStringASCII(suffix)); in InsertBeforeExtensionASCII()
526 DCHECK(base::IsStringASCII(component)); in AppendASCII()
596 if (base::IsStringASCII(path_)) in MaybeAsASCII()
629 if (base::IsStringASCII(path_)) in MaybeAsASCII()
/external/chromium-libpac/src/
Dproxy_resolver_v8.cc81 bool IsStringASCII(const std::u16string& str) { in IsStringASCII() function
216 if (IsStringASCII(hostname_utf16)) { in GetHostnameArgument()
408 if (!IsStringASCII(*results)) { in ResolveProxy()