Lines Matching defs:src
9 #include "src/objects/intl-objects.h"
16 #include "src/api/api-inl.h"
17 #include "src/base/strings.h"
18 #include "src/date/date.h"
19 #include "src/execution/isolate.h"
20 #include "src/execution/local-isolate.h"
21 #include "src/handles/global-handles.h"
22 #include "src/heap/factory.h"
23 #include "src/objects/js-collator-inl.h"
24 #include "src/objects/js-date-time-format-inl.h"
25 #include "src/objects/js-locale-inl.h"
26 #include "src/objects/js-locale.h"
27 #include "src/objects/js-number-format-inl.h"
28 #include "src/objects/managed-inl.h"
29 #include "src/objects/objects-inl.h"
30 #include "src/objects/option-utils.h"
31 #include "src/objects/property-descriptor.h"
32 #include "src/objects/smi.h"
33 #include "src/objects/string.h"
34 #include "src/strings/string-case.h"
104 bool ToUpperFastASCII(const base::Vector<const Char>& src,
109 for (auto it = src.begin(); it != src.end(); ++it) {
120 bool ToUpperOneByte(const base::Vector<const Char>& src, uint8_t* dest,
128 for (auto it = src.begin(); it != src.end(); ++it) {
146 void ToUpperWithSharpS(const base::Vector<const Char>& src,
149 for (auto it = src.begin(); it != src.end(); ++it) {
264 const UChar* src = GetUCharBufferFromFlat(flat, &sap, src_length);
268 dest_length, src, src_length, lang, &status);
288 // strings and does not allocate. Note that {src} could still be, e.g., a
291 String Intl::ConvertOneByteToLower(String src, String dst) {
292 DCHECK_EQ(src.length(), dst.length());
293 DCHECK(src.IsOneByteRepresentation());
294 DCHECK(src.IsFlat());
299 const int length = src.length();
300 String::FlatContent src_flat = src.GetFlatContent(no_gc);
313 return has_changed_character ? dst : src;
323 int index_to_first_unprocessed = FindFirstUpperOrNonAscii(src, length);
324 if (index_to_first_unprocessed == length) return src;
381 base::Vector<const uint8_t> src = flat.ToOneByteVector();
385 reinterpret_cast<const char*>(src.begin()), length,
393 ToUpperOneByte(src.SubVector(index_to_first_unprocessed, length),
397 base::Vector<const uint16_t> src = flat.ToUC16Vector();
398 if (ToUpperFastASCII(src, result)) return result;
399 is_result_single_byte = ToUpperOneByte(src, dest, &sharp_s_count);