Home
last modified time | relevance | path

Searched refs:StringPiece16 (Results 1 – 25 of 41) sorted by relevance

12

/external/libchrome/base/strings/
Dstring_util.h109 BASE_EXPORT string16 ToLowerASCII(StringPiece16 str);
113 BASE_EXPORT string16 ToUpperASCII(StringPiece16 str);
138 BASE_EXPORT int CompareCaseInsensitiveASCII(StringPiece16 a, StringPiece16 b);
144 BASE_EXPORT bool EqualsCaseInsensitiveASCII(StringPiece16 a, StringPiece16 b);
177 StringPiece16 remove_chars,
189 StringPiece16 replace_chars,
211 StringPiece16 trim_chars,
219 BASE_EXPORT StringPiece16 TrimString(StringPiece16 input,
220 StringPiece16 trim_chars,
242 BASE_EXPORT StringPiece16 TrimWhitespace(StringPiece16 input,
[all …]
Dstring_piece.h50 BASE_EXPORT void CopyToString(const StringPiece16& self, string16* target);
53 BASE_EXPORT void AppendToString(const StringPiece16& self, string16* target);
59 BASE_EXPORT size_t copy(const StringPiece16& self,
67 BASE_EXPORT size_t find(const StringPiece16& self,
68 const StringPiece16& s,
73 BASE_EXPORT size_t find(const StringPiece16& self,
80 BASE_EXPORT size_t rfind(const StringPiece16& self,
81 const StringPiece16& s,
86 BASE_EXPORT size_t rfind(const StringPiece16& self,
93 BASE_EXPORT size_t find_first_of(const StringPiece16& self,
[all …]
Dstring_split.cc32 string16 PieceToOutputType<string16, string16>(StringPiece16 piece) { in PieceToOutputType()
38 template<> StringPiece16 WhitespaceForType<string16>() { in WhitespaceForType()
54 size_t FindFirstOf(StringPiece16 piece, char16 c, size_t pos) { in FindFirstOf()
60 size_t FindFirstOf(StringPiece16 piece, StringPiece16 one_of, size_t pos) { in FindFirstOf()
172 std::vector<string16> SplitString(StringPiece16 input, in SplitString()
173 StringPiece16 separators, in SplitString()
180 return SplitStringT<string16, string16, StringPiece16>( in SplitString()
196 std::vector<StringPiece16> SplitStringPiece(StringPiece16 input, in SplitStringPiece()
197 StringPiece16 separators, in SplitStringPiece()
201 return SplitStringT<string16, StringPiece16, char16>( in SplitStringPiece()
[all …]
Dstring_split.h52 StringPiece16 input,
53 StringPiece16 separators,
74 BASE_EXPORT std::vector<StringPiece16> SplitStringPiece(
75 StringPiece16 input,
76 StringPiece16 separators,
94 StringPiece16 input,
95 StringPiece16 delimiter,
116 BASE_EXPORT std::vector<StringPiece16> SplitStringPieceUsingSubstr(
117 StringPiece16 input,
118 StringPiece16 delimiter,
Dstring_piece.cc70 void CopyToString(const StringPiece16& self, string16* target) { in CopyToString()
84 void AppendToString(const StringPiece16& self, string16* target) { in AppendToString()
102 size_t copy(const StringPiece16& self, char16* buf, size_t n, size_t pos) { in copy()
124 size_t find(const StringPiece16& self, const StringPiece16& s, size_t pos) { in find()
145 size_t find(const StringPiece16& self, char16 c, size_t pos) { in find()
171 size_t rfind(const StringPiece16& self, const StringPiece16& s, size_t pos) { in rfind()
196 size_t rfind(const StringPiece16& self, char16 c, size_t pos) { in rfind()
222 size_t find_first_of(const StringPiece16& self, in find_first_of()
223 const StringPiece16& s, in find_first_of()
225 StringPiece16::const_iterator found = in find_first_of()
[all …]
Dstring_util.cc181 string16 ToLowerASCII(StringPiece16 str) { in ToLowerASCII()
189 string16 ToUpperASCII(StringPiece16 str) { in ToUpperASCII()
224 int CompareCaseInsensitiveASCII(StringPiece16 a, StringPiece16 b) { in CompareCaseInsensitiveASCII()
234 bool EqualsCaseInsensitiveASCII(StringPiece16 a, StringPiece16 b) { in EqualsCaseInsensitiveASCII()
255 StringPiece16 replace_chars, in ReplaceChars()
258 return ReplaceCharsT(input, replace_chars, StringPiece16(replace_with), in ReplaceChars()
270 StringPiece16 remove_chars, in RemoveChars()
272 return ReplaceCharsT(input, remove_chars, StringPiece16(), output); in RemoveChars()
318 StringPiece16 trim_chars, in TrimString()
340 StringPiece16 TrimString(StringPiece16 input, in TrimString()
[all …]
Dstring_number_conversions.h101 BASE_EXPORT bool StringToInt(StringPiece16 input, int* output);
104 BASE_EXPORT bool StringToUint(StringPiece16 input, unsigned* output);
107 BASE_EXPORT bool StringToInt64(StringPiece16 input, int64_t* output);
110 BASE_EXPORT bool StringToUint64(StringPiece16 input, uint64_t* output);
113 BASE_EXPORT bool StringToSizeT(StringPiece16 input, size_t* output);
Dstrcat.h62 BASE_EXPORT string16 StrCat(span<const StringPiece16> pieces);
70 inline string16 StrCat(std::initializer_list<StringPiece16> pieces) { in StrCat()
83 BASE_EXPORT void StrAppend(string16* dest, span<const StringPiece16> pieces);
93 std::initializer_list<StringPiece16> pieces) { in StrAppend()
Dutf_string_conversions.cc218 return UTFConversion(StringPiece16(src, src_len), output); in UTF16ToUTF8()
221 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8()
248 std::wstring UTF16ToWide(StringPiece16 utf16) { in UTF16ToWide()
267 return UTFConversion(StringPiece16(src, src_len), output); in UTF16ToWide()
270 std::wstring UTF16ToWide(StringPiece16 utf16) { in UTF16ToWide()
328 std::string UTF16ToASCII(StringPiece16 utf16) { in UTF16ToASCII()
Dutf_string_conversions.h36 BASE_EXPORT std::wstring UTF16ToWide(StringPiece16 utf16);
42 BASE_EXPORT std::string UTF16ToUTF8(StringPiece16 utf16);
50 BASE_EXPORT std::string UTF16ToASCII(StringPiece16 utf16);
Dold_utf_string_conversions.h20 using base::StringPiece16;
52 BASE_EXPORT std::string UTF16ToUTF8(StringPiece16 utf16);
60 BASE_EXPORT std::string UTF16ToASCII(StringPiece16 utf16);
Dstring_number_conversions.cc301 : public BaseIteratorRangeToNumberTraits<StringPiece16::const_iterator,
307 bool String16ToIntImpl(StringPiece16 input, VALUE* output) { in String16ToIntImpl()
398 bool StringToInt(StringPiece16 input, int* output) { in StringToInt()
406 bool StringToUint(StringPiece16 input, unsigned* output) { in StringToUint()
414 bool StringToInt64(StringPiece16 input, int64_t* output) { in StringToInt64()
422 bool StringToUint64(StringPiece16 input, uint64_t* output) { in StringToUint64()
430 bool StringToSizeT(StringPiece16 input, size_t* output) { in StringToSizeT()
Dpattern.h19 BASE_EXPORT bool MatchPattern(StringPiece16 string, StringPiece16 pattern);
Dold_utf_string_conversions.cc208 if (IsStringASCII(StringPiece16(src, src_len))) { in UTF16ToUTF8()
217 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8()
240 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8()
257 std::string UTF16ToASCII(StringPiece16 utf16) { in UTF16ToASCII()
Dutf_string_conversions_fuzzer.cc26 base::StringPiece16 string_piece_input16( in LLVMFuzzerTestOneInput()
51 base::StringPiece16 string_piece_input16(output_string16); in LLVMFuzzerTestOneInput()
Dstrcat.cc47 string16 StrCat(span<const StringPiece16> pieces) { in StrCat()
69 void StrAppend(string16* dest, span<const StringPiece16> pieces) { in StrAppend()
Dpattern.cc150 bool MatchPattern(StringPiece16 eval, StringPiece16 pattern) { in MatchPattern()
Dstring_util_unittest.cc425 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()
781 std::vector<StringPiece16> parts; in TEST()
785 parts.push_back(StringPiece16()); in TEST()
799 parts.push_back(StringPiece16()); in TEST()
835 EXPECT_EQ(string16(), JoinString({StringPiece16()}, separator)); in TEST()
846 JoinString({kA, kB, kC, StringPiece16()}, separator)); in TEST()
850 JoinString({kA, kB, kC, StringPiece16(), kSpace}, ASCIIToUTF16("|"))); in TEST()
853 const StringPiece16 kPieceA = kA; in TEST()
[all …]
Dstring_piece_forward.h19 typedef BasicStringPiece<string16> StringPiece16; typedef
/external/libchrome/mojo/public/cpp/base/
Dstring16_mojom_traits.h21 StructTraits<mojo_base::mojom::String16DataView, base::StringPiece16> { in COMPONENT_EXPORT()
22 static base::span<const uint16_t> data(base::StringPiece16 str) { in COMPONENT_EXPORT()
33 base::StringPiece16>::data(str); in COMPONENT_EXPORT()
/external/libchrome/base/json/
Dstring_escape.h36 BASE_EXPORT bool EscapeJSONString(StringPiece16 str,
43 BASE_EXPORT std::string GetQuotedJSONString(StringPiece16 str);
Dstring_escape.cc123 bool EscapeJSONString(StringPiece16 str, in EscapeJSONString()
136 std::string GetQuotedJSONString(StringPiece16 str) { in GetQuotedJSONString()
/external/libchrome/base/android/
Djni_string.cc15 const base::StringPiece16& str) { in ConvertUTF16ToJavaStringImpl()
115 const base::StringPiece16& str) { in ConvertUTF16ToJavaString()
/external/libchrome/base/
Dpickle.h55 bool ReadStringPiece16(StringPiece16* result) WARN_UNUSED_RESULT;
203 void WriteString16(const StringPiece16& value);
Dpickle.cc180 bool PickleIterator::ReadStringPiece16(StringPiece16* result) { in ReadStringPiece16()
188 *result = StringPiece16(reinterpret_cast<const char16*>(read_from), len); in ReadStringPiece16()
296 void Pickle::WriteString16(const StringPiece16& value) { in WriteString16()

12