Searched refs:IsStringASCII (Results 1 – 13 of 13) sorted by relevance
/external/libchrome/base/strings/ |
D | old_utf_string_conversions.cc | 16 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 …]
|
D | string_util_unittest.cc | 391 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 …]
|
D | utf_string_conversions.cc | 177 if (IsStringASCII(src_str)) { in UTFConversion() 324 DCHECK(IsStringASCII(ascii)) << ascii; in ASCIIToUTF16() 329 DCHECK(IsStringASCII(utf16)) << UTF16ToUTF8(utf16); in UTF16ToASCII()
|
D | string_util.h | 286 BASE_EXPORT bool IsStringASCII(StringPiece str); 287 BASE_EXPORT bool IsStringASCII(StringPiece16 str); 289 BASE_EXPORT bool IsStringASCII(WStringPiece str);
|
D | utf_string_conversions_fuzzer.cc | 49 if (base::IsStringASCII(string_piece_input)) { in LLVMFuzzerTestOneInput()
|
D | string_util.cc | 500 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/ |
D | native_library_posix.cc | 62 DCHECK(IsStringASCII(name)); in GetNativeLibraryName()
|
D | feature_list.cc | 74 return IsStringASCII(name) && name.find_first_of(",<*") == std::string::npos; in IsValidFeatureOrFieldTrialName()
|
D | command_line.cc | 295 if (!IsStringASCII(value)) { in GetSwitchValueASCII()
|
D | values.cc | 879 if (!IsStringASCII(out)) { in GetStringASCII()
|
/external/libchrome/base/metrics/ |
D | persistent_histogram_storage.cc | 30 DCHECK(IsStringASCII(allocator_name)); in PersistentHistogramStorage()
|
/external/libchrome/base/files/ |
D | file_path.cc | 423 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/ |
D | proxy_resolver_v8.cc | 81 bool IsStringASCII(const std::u16string& str) { in IsStringASCII() function 216 if (IsStringASCII(hostname_utf16)) { in GetHostnameArgument() 408 if (!IsStringASCII(*results)) { in ResolveProxy()
|