Home
last modified time | relevance | path

Searched refs:u16string (Results 1 – 25 of 156) sorted by relevance

1234567

/third_party/gn/src/base/strings/
Dstring_util.h75 std::u16string ToLowerASCII(std::u16string_view str);
79 std::u16string ToUpperASCII(std::u16string_view str);
126 bool RemoveChars(const std::u16string& input,
128 std::u16string* output);
138 bool ReplaceChars(const std::u16string& input,
140 const std::u16string& replace_with,
141 std::u16string* output);
160 bool TrimString(const std::u16string& input,
162 std::u16string* output);
189 TrimPositions TrimWhitespace(const std::u16string& input,
[all …]
Dstring_number_conversions.h23 std::u16string NumberToString16(int value);
25 std::u16string NumberToString16(unsigned int value);
27 std::u16string NumberToString16(long value);
29 std::u16string NumberToString16(unsigned long value);
31 std::u16string NumberToString16(long long value);
33 std::u16string NumberToString16(unsigned long long value);
42 inline std::u16string IntToString16(int value) { in IntToString16()
48 inline std::u16string UintToString16(unsigned value) { in UintToString16()
54 inline std::u16string Int64ToString16(int64_t value) { in Int64ToString16()
Dstring_util.cc116 std::u16string ToLowerASCII(std::u16string_view str) { in ToLowerASCII()
117 return ToLowerASCIIImpl<std::u16string>(str); in ToLowerASCII()
124 std::u16string ToUpperASCII(std::u16string_view str) { in ToUpperASCII()
125 return ToUpperASCIIImpl<std::u16string>(str); in ToUpperASCII()
161 return CompareCaseInsensitiveASCIIT<std::u16string>(a, b); in CompareCaseInsensitiveASCII()
173 return CompareCaseInsensitiveASCIIT<std::u16string>(a, b) == 0; in EqualsCaseInsensitiveASCII()
183 bool ReplaceChars(const std::u16string& input, in ReplaceChars()
185 const std::u16string& replace_with, in ReplaceChars()
186 std::u16string* output) { in ReplaceChars()
199 bool RemoveChars(const std::u16string& input, in RemoveChars()
[all …]
Dutf_offset_string_conversions.cc40 if (*offset == std::u16string::npos) in AdjustOffset()
48 *offset = std::u16string::npos; in AdjustOffset()
56 *offset = std::u16string::npos; in AdjustOffset()
73 if (*offset == std::u16string::npos) in UnadjustOffset()
82 *offset = std::u16string::npos; in UnadjustOffset()
224 std::u16string* output, in UTF8ToUTF16WithAdjustments()
230 std::u16string UTF8ToUTF16WithAdjustments( in UTF8ToUTF16WithAdjustments()
233 std::u16string result; in UTF8ToUTF16WithAdjustments()
238 std::u16string UTF8ToUTF16AndAdjustOffsets( in UTF8ToUTF16AndAdjustOffsets()
243 offset = std::u16string::npos; in UTF8ToUTF16AndAdjustOffsets()
[all …]
Dutf_offset_string_conversions.h46 size_t limit = std::u16string::npos);
52 size_t limit = std::u16string::npos);
93 std::u16string* output,
95 std::u16string UTF8ToUTF16WithAdjustments(
102 std::u16string UTF8ToUTF16AndAdjustOffsets(
Dstring_number_conversions.cc315 std::u16string NumberToString16(int value) { in NumberToString16()
316 return IntToStringT<std::u16string, int>::IntToString(value); in NumberToString16()
323 std::u16string NumberToString16(unsigned value) { in NumberToString16()
324 return IntToStringT<std::u16string, unsigned>::IntToString(value); in NumberToString16()
331 std::u16string NumberToString16(long value) { in NumberToString16()
332 return IntToStringT<std::u16string, long>::IntToString(value); in NumberToString16()
339 std::u16string NumberToString16(unsigned long value) { in NumberToString16()
340 return IntToStringT<std::u16string, unsigned long>::IntToString(value); in NumberToString16()
347 std::u16string NumberToString16(long long value) { in NumberToString16()
348 return IntToStringT<std::u16string, long long>::IntToString(value); in NumberToString16()
[all …]
Dutf_string_conversions.cc159 bool UTF8ToUTF16(const char* src, size_t src_len, std::u16string* output) { in UTF8ToUTF16()
163 std::u16string UTF8ToUTF16(std::string_view utf8) { in UTF8ToUTF16()
164 std::u16string ret; in UTF8ToUTF16()
185 std::u16string ASCIIToUTF16(std::string_view ascii) { in ASCIIToUTF16()
187 return std::u16string(ascii.begin(), ascii.end()); in ASCIIToUTF16()
Dutf_string_conversions.h15 bool UTF8ToUTF16(const char* src, size_t src_len, std::u16string* output);
16 std::u16string UTF8ToUTF16(std::string_view utf8);
22 std::u16string ASCIIToUTF16(std::string_view ascii);
/third_party/cef/include/internal/
Dcef_string_wrappers.h102 static inline std::u16string to_string16(const struct_type* s) { in to_string16()
106 std::u16string str; in to_string16()
108 str = std::u16string( in to_string16()
109 reinterpret_cast<std::u16string::value_type*>(cstr.str), cstr.length); in to_string16()
114 static inline bool from_string16(const std::u16string::value_type* data, in from_string16()
123 static inline std::u16string to_string16(const struct_type* s) { in to_string16()
124 return std::u16string( in to_string16()
125 reinterpret_cast<const std::u16string::value_type*>(s->str), s->length); in to_string16()
127 static inline bool from_string16(const std::u16string::value_type* data, in from_string16()
136 static inline bool from_string16(const std::u16string& str, struct_type* s) { in from_string16()
[all …]
/third_party/skia/experimental/sktext/samples/
DText.cpp47 const std::u16string& text, in drawLine()
50 const std::u16string& ellipsis = u"\u2026"; in drawLine()
68 std::u16string mirror(const std::u16string& text) { in mirror()
69 std::u16string result; in mirror()
81 std::u16string normal(const std::u16string& text) { in normal()
82 std::u16string result; in normal()
97 const std::u16string line = u"One line of text"; in onDrawContent()
146 std::u16string mirror(const std::string& text) { in mirror()
147 std::u16string result; in mirror()
175 …std::u16string utf16(u"يَهْدِيْكُمُ اللَّهُ وَيُصْلِحُ بَالَكُمُيَهْدِيْكُمُ اللَّهُ وَيُصْلِحُ بَ… in onDrawContent()
/third_party/cef/libcef/common/
Dstring_types_impl.cc173 int r = std::char_traits<std::u16string::value_type>::compare( in cef_string_utf16_cmp()
174 reinterpret_cast<std::u16string::value_type*>(str1->str), in cef_string_utf16_cmp()
175 reinterpret_cast<std::u16string::value_type*>(str2->str), in cef_string_utf16_cmp()
212 std::u16string str; in cef_string_wide_to_utf16()
225 reinterpret_cast<const std::u16string::value_type*>(src), src_len, &str); in cef_string_utf16_to_wide()
234 std::u16string str; in cef_string_utf8_to_utf16()
247 reinterpret_cast<const std::u16string::value_type*>(src), src_len, &str); in cef_string_utf16_to_utf8()
263 const std::u16string& str = base::ASCIIToUTF16(std::string(src, src_len)); in cef_string_ascii_to_utf16()
305 const std::u16string& str = base::i18n::ToLower(std::u16string( in cef_string_utf16_to_lower()
306 reinterpret_cast<const std::u16string::value_type*>(src), src_len)); in cef_string_utf16_to_lower()
[all …]
Dstring_util.cc32 source->front_as<std::u16string::value_type>(), in GetCefString()
33 source->size() / sizeof(std::u16string::value_type)); in GetCefString()
49 const std::u16string& string = source.Utf16(); in CreateSharedMemoryRegion()
51 string.length() * sizeof(std::u16string::value_type); in CreateSharedMemoryRegion()
/third_party/skia/experimental/sktext/editor/
DTexts.h27 …StaticText(std::u16string text, SkPoint offset, SkSize size, SkSpan<FontBlock> fontBlocks, TextDir… in StaticText()
45 std::u16string fText;
58 DynamicText(std::u16string text, in DynamicText()
90 bool rebuild(std::u16string text) { in rebuild()
123 std::u16string fText;
142 …EditableText(std::u16string text, SkPoint offset, SkSize size, SkSpan<FontBlock> fontBlocks, SkSpa… in EditableText()
166 std::u16string text; in removeElement()
168 text.append(this->fText.substr(toRemove.fEnd, std::u16string::npos)); in removeElement()
173 std::u16string text; in insertElement()
176 text.append(fText.substr(toInsert, std::u16string::npos)); in insertElement()
[all …]
/third_party/cef/libcef/browser/
Djavascript_dialog_manager.cc55 std::move(callback).Run(false, std::u16string()); in CancelNow()
85 const std::u16string& message_text, in RunJavaScriptDialog()
86 const std::u16string& default_prompt_text, in RunJavaScriptDialog()
131 const std::u16string& display_url = in RunJavaScriptDialog()
150 std::move(callback).Run(true, std::u16string()); in RunBeforeUnloadDialog()
154 const std::u16string& message_text = u"Is it OK to leave/reload this page?"; in RunBeforeUnloadDialog()
181 std::move(callback).Run(true, std::u16string()); in RunBeforeUnloadDialog()
190 std::u16string(), // display_url in RunBeforeUnloadDialog()
192 std::u16string(), // default_prompt_text in RunBeforeUnloadDialog()
218 const std::u16string& user_input) { in DialogClosed()
Djavascript_dialog_runner.h23 const std::u16string& /* user_input */)>;
28 const std::u16string& display_url,
29 const std::u16string& message_text,
30 const std::u16string& default_prompt_text,
/third_party/cef/libcef/browser/native/
Dfile_dialog_runner_mac.mm28 std::u16string GetDescriptionFromMimeType(const std::string& mime_type) {
45 return std::u16string();
49 const std::vector<std::u16string>& accept_filters,
51 std::vector<std::vector<std::u16string>>* all_extensions) {
53 const std::u16string& filter = accept_filters[i];
57 std::vector<std::u16string> extensions;
58 std::u16string description;
65 const std::vector<std::u16string>& ext =
69 const std::u16string& file_ext = ext[x];
95 std::u16string ext_str;
[all …]
Djavascript_dialog_runner_mac.h29 const std::u16string& display_url,
30 const std::u16string& message_text,
31 const std::u16string& default_prompt_text,
36 void DialogClosed(bool success, const std::u16string& user_input);
/third_party/flutter/engine/flutter/third_party/txt/benchmarks/
Dparagraph_builder_benchmarks.cc66 std::u16string text = u"Hello World"; in BM_ParagraphBuilderAddTextString()
80 std::u16string text = u"Hello World"; in BM_ParagraphBuilderAddTextChar()
94 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphBuilderAddTextU16stringShort()
126 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphBuilderAddTextU16stringLong()
144 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphBuilderShortParagraphConstruct()
182 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphBuilderLongParagraphConstruct()
Dparagraph_benchmarks.cc40 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphShortLayout()
81 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphLongLayout()
123 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphJustifyLayout()
149 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphManyStylesLayout()
175 std::u16string u16_text(text.data(), text.data() + text.size()); in BM_ParagraphTextBigO()
204 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphStylesBigO()
234 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphPaintSimple()
281 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphPaintLarge()
312 std::u16string u16_text(icu_text.getBuffer(), in BM_ParagraphPaintDecoration()
/third_party/json/test/src/
Dunit-wstring.cpp46 return (std::u16string(u"��") == std::u16string(u"\U0001F4A9")); in u16string_is_utf16()
82 std::u16string w = u"[12.2,\"Ⴥaäö����\"]";
92 std::u16string w = u"\"\xDBFF";
/third_party/cef/libcef/common/alloy/
Dalloy_content_client.cc110 std::u16string AlloyContentClient::GetLocalizedString(int message_id) { in GetLocalizedString()
111 std::u16string value = in GetLocalizedString()
119 std::u16string AlloyContentClient::GetLocalizedString( in GetLocalizedString()
121 const std::u16string& replacement) { in GetLocalizedString()
122 std::u16string value = l10n_util::GetStringFUTF16(message_id, replacement); in GetLocalizedString()
/third_party/gn/src/base/win/
Dregistry.h68 LONG GetValueNameAt(int index, std::u16string* name) const;
96 LONG ReadValue(const char16_t* name, std::u16string* out_value) const;
101 LONG ReadValues(const char16_t* name, std::vector<std::u16string>* values);
136 const std::u16string& name,
194 std::u16string name_;
/third_party/skia/experimental/sktext/src/
DPaint.h74 static bool drawText(std::u16string text, SkCanvas* canvas, SkScalar x, SkScalar y);
75 static bool drawText(std::u16string text, SkCanvas* canvas, SkScalar width);
76 static bool drawText(std::u16string text, SkCanvas* canvas,
81 static bool drawText(std::u16string text, SkCanvas* canvas,
88 static std::unique_ptr<WrappedText> layout(std::u16string text,
/third_party/cef/libcef/browser/views/
Dwindow_view.h63 std::u16string GetWindowTitle() const override;
89 void SetTitle(const std::u16string& title);
90 std::u16string title() const { return title_; } in title()
127 std::u16string title_;
Dmenu_runner_views.cc34 bool CefMenuRunnerViews::FormatLabel(std::u16string& label) { in FormatLabel()
36 const std::u16string::value_type replace[] = {L'&', 0}; in FormatLabel()
37 return base::ReplaceChars(label, replace, std::u16string(), &label); in FormatLabel()

1234567