Home
last modified time | relevance | path

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

/external/libchrome/base/strings/
Dutf_string_conversions.cc49 if (IsStringASCII(std::wstring(src, src_len))) { in WideToUTF8()
59 if (IsStringASCII(wide)) { in WideToUTF8()
70 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToWide()
80 if (IsStringASCII(utf8)) { in UTF8ToWide()
150 if (IsStringASCII(StringPiece(src, src_len))) { in UTF8ToUTF16()
160 if (IsStringASCII(utf8)) { in UTF8ToUTF16()
173 if (IsStringASCII(StringPiece16(src, src_len))) { in UTF16ToUTF8()
206 if (IsStringASCII(utf16)) in UTF16ToUTF8()
218 DCHECK(IsStringASCII(ascii)) << ascii; in ASCIIToUTF16()
223 DCHECK(IsStringASCII(utf16)) << UTF16ToUTF8(utf16); in UTF16ToASCII()
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 …]
Dstring_util.h286 BASE_EXPORT bool IsStringASCII(const StringPiece& str);
287 BASE_EXPORT bool IsStringASCII(const StringPiece16& str);
288 BASE_EXPORT bool IsStringASCII(const string16& str);
290 BASE_EXPORT bool IsStringASCII(const std::wstring& str);
Dstring_util.cc515 bool IsStringASCII(const StringPiece& str) { in IsStringASCII() function
519 bool IsStringASCII(const StringPiece16& str) { in IsStringASCII() function
523 bool IsStringASCII(const string16& str) { in IsStringASCII() function
528 bool IsStringASCII(const std::wstring& str) { in IsStringASCII() function
/external/libchrome/base/
Dnative_library_posix.cc66 DCHECK(IsStringASCII(name)); in GetNativeLibraryName()
Dfeature_list.cc74 return IsStringASCII(name) && name.find_first_of(",<*") == std::string::npos; in IsValidFeatureOrFieldTrialName()
Dcommand_line.cc302 if (!IsStringASCII(value)) { in GetSwitchValueASCII()
Dvalues.cc790 if (!IsStringASCII(out)) { in GetStringASCII()
/external/libchrome/base/files/
Dfile_path.cc425 DCHECK(IsStringASCII(suffix)); in InsertBeforeExtensionASCII()
528 DCHECK(base::IsStringASCII(component)); in AppendASCII()
600 if (base::IsStringASCII(path_)) in MaybeAsASCII()
645 if (base::IsStringASCII(path_)) in MaybeAsASCII()
/external/chromium-libpac/src/
Dproxy_resolver_v8.cc77 bool IsStringASCII(const android::String16& str) { in IsStringASCII() function
218 if (IsStringASCII(hostname_utf16)) { in GetHostnameArgument()
413 if (!IsStringASCII(*results)) { in ResolveProxy()