/third_party/node/deps/v8/src/strings/ |
H A D | unicode-decoder.h | 18 inline int NonAsciiStart(const uint8_t* chars, int length) { in NonAsciiStart() argument 19 const uint8_t* start = chars; in NonAsciiStart() 20 const uint8_t* limit = chars + length; in NonAsciiStart() 24 while (!IsAligned(reinterpret_cast<intptr_t>(chars), kIntptrSize)) { in NonAsciiStart() 25 if (*chars > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart() 26 return static_cast<int>(chars - start); in NonAsciiStart() 28 ++chars; in NonAsciiStart() 33 while (chars + sizeof(uintptr_t) <= limit) { in NonAsciiStart() 34 if (*reinterpret_cast<const uintptr_t*>(chars) & non_one_byte_mask) { in NonAsciiStart() 35 return static_cast<int>(chars in NonAsciiStart() [all...] |
H A D | string-hasher-inl.h | 56 const uchar* chars = reinterpret_cast<const uchar*>(chars_raw); in HashSequentialString() local 58 DCHECK_IMPLIES(0 < length, chars != nullptr); in HashSequentialString() 60 if (IsDecimalDigit(chars[0]) && (length == 1 || chars[0] != '0')) { in HashSequentialString() 63 uint32_t index = chars[0] - '0'; in HashSequentialString() 69 } while (TryAddArrayIndexChar(&index, chars[i++])); in HashSequentialString() 86 const uchar* end = &chars[length]; in HashSequentialString() 87 while (chars != end) { in HashSequentialString() 89 !TryAddIntegerIndexChar(&index_big, *chars)) { in HashSequentialString() 92 running_hash = AddCharacterCore(running_hash, *chars in HashSequentialString() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | CharsTrie.java | 38 * The CharsTrie object will not read more chars than 134 private CharSequence chars; field in CharsTrie.State 148 state.chars=chars_; in saveState() 168 if(chars_==state.chars && chars_!=null && root_==state.root) { in resetToState() 398 * @return The number of chars which continue the string from here. 475 public CharSequence chars; field in CharsTrie.Entry 600 entry_.chars=str_; in next() 640 // We reset entry_.chars every time we return entry_ in truncateAndStop() 642 entry_.chars=str_; in truncateAndStop() 667 entry_.chars in branchNext() 702 readValue(CharSequence chars, int pos, int leadUnit) readValue() argument 723 skipValue(CharSequence chars, int pos) skipValue() argument 728 readNodeValue(CharSequence chars, int pos, int leadUnit) readNodeValue() argument 752 jumpByDelta(CharSequence chars, int pos) jumpByDelta() argument 765 skipDelta(CharSequence chars, int pos) skipDelta() argument 877 findUniqueValueFromBranch(CharSequence chars, int pos, int length, long uniqueValue) findUniqueValueFromBranch() argument 918 findUniqueValue(CharSequence chars, int pos, long uniqueValue) findUniqueValue() argument 961 getNextBranchChars(CharSequence chars, int pos, int length, Appendable out) getNextBranchChars() argument [all...] |
H A D | CharsTrieBuilder.java | 81 return CharBuffer.wrap(chars, chars.length-charsLength, charsLength); in buildCharSequence() 86 if(chars==null) { in buildChars() 87 chars=new char[1024]; in buildChars() 100 chars=null; in clear() 140 if(length>chars.length) { in ensureCapacity() 141 int newCapacity=chars.length; in ensureCapacity() 146 System.arraycopy(chars, chars.length-charsLength, in ensureCapacity() 148 chars in ensureCapacity() 278 private char[] chars; global() field in CharsTrieBuilder [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | CharsTrie.java | 39 * The CharsTrie object will not read more chars than 127 private CharSequence chars; field in CharsTrie.State 140 state.chars=chars_; in saveState() 159 if(chars_==state.chars && chars_!=null && root_==state.root) { in resetToState() 381 * @return The number of chars which continue the string from here. 453 public CharSequence chars; field in CharsTrie.Entry 574 entry_.chars=str_; in next() 613 // We reset entry_.chars every time we return entry_ in truncateAndStop() 615 entry_.chars=str_; in truncateAndStop() 640 entry_.chars in branchNext() 675 readValue(CharSequence chars, int pos, int leadUnit) readValue() argument 696 skipValue(CharSequence chars, int pos) skipValue() argument 701 readNodeValue(CharSequence chars, int pos, int leadUnit) readNodeValue() argument 725 jumpByDelta(CharSequence chars, int pos) jumpByDelta() argument 738 skipDelta(CharSequence chars, int pos) skipDelta() argument 850 findUniqueValueFromBranch(CharSequence chars, int pos, int length, long uniqueValue) findUniqueValueFromBranch() argument 891 findUniqueValue(CharSequence chars, int pos, long uniqueValue) findUniqueValue() argument 934 getNextBranchChars(CharSequence chars, int pos, int length, Appendable out) getNextBranchChars() argument [all...] |
H A D | CharsTrieBuilder.java | 78 return CharBuffer.wrap(chars, chars.length-charsLength, charsLength); in buildCharSequence() 83 if(chars==null) { in buildChars() 84 chars=new char[1024]; in buildChars() 96 chars=null; in clear() 136 if(length>chars.length) { in ensureCapacity() 137 int newCapacity=chars.length; in ensureCapacity() 142 System.arraycopy(chars, chars.length-charsLength, in ensureCapacity() 144 chars in ensureCapacity() 274 private char[] chars; global() field in CharsTrieBuilder [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | FormattedStringBuilder.java | 47 char[] chars; field in FormattedStringBuilder 63 chars = new char[capacity]; in FormattedStringBuilder() 74 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom() 93 return chars[zero + index]; in charAt() 106 return Character.codePointAt(chars, zero, zero + length); in getFirstCodePoint() 113 return Character.codePointBefore(chars, zero + length, zero); in getLastCodePoint() 117 return Character.codePointAt(chars, zero + index, zero + length); in codePointAt() 121 return Character.codePointBefore(chars, zer in codePointBefore() 257 append(char[] chars, Object[] fields) append() argument 267 insert(int index, char[] chars, Object[] fields) insert() argument 547 contentEquals(char[] chars, Object[] fields) contentEquals() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | FormattedStringBuilder.java | 33 char[] chars; field in FormattedStringBuilder 49 chars = new char[capacity]; in FormattedStringBuilder() 60 chars = Arrays.copyOf(source.chars, source.chars.length); in copyFrom() 79 return chars[zero + index]; in charAt() 92 return Character.codePointAt(chars, zero, zero + length); in getFirstCodePoint() 99 return Character.codePointBefore(chars, zero + length, zero); in getLastCodePoint() 103 return Character.codePointAt(chars, zero + index, zero + length); in codePointAt() 107 return Character.codePointBefore(chars, zer in codePointBefore() 243 append(char[] chars, Object[] fields) append() argument 253 insert(int index, char[] chars, Object[] fields) insert() argument 533 contentEquals(char[] chars, Object[] fields) contentEquals() argument [all...] |
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
H A D | LigatureTree.java | 74 String ligatureString(int[] chars) in ligatureString() argument 77 int len = chars.length - 1; in ligatureString() 84 result.append(Utility.hex(chars[i], 6)); in ligatureString() 87 result.append(" => " + Utility.hex(chars[len], 6)); in ligatureString() 92 void insert(int[] chars, int index) in insert() argument 94 int c = chars[index]; in insert() 95 int len = chars.length; in insert() 99 System.out.println("ignoring ligature " + ligatureString(chars) + in insert() 111 subnodes[0].insert(chars, index + 1); in insert() 120 subnodes[i].insert(chars, inde in insert() 231 insert(int[] chars) insert() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/ |
H A D | UScriptRun.java | 108 * @param chars the array of characters over which to iterate. 114 public UScriptRun(char[] chars) in UScriptRun() argument 116 reset(chars); in UScriptRun() 123 * @param chars the array of characters over which to iterate. 131 public UScriptRun(char[] chars, int start, int count) in UScriptRun() argument 133 reset(chars, start, count); in UScriptRun() 197 * in <code>chars</code> starting at <code>start</code>. This allows 200 * @param chars the new array of characters over which to iterate. 208 public final void reset(char[] chars, int start, int count) in reset() argument 210 if (chars in reset() 229 reset(char[] chars) reset() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/lang/ |
H A D | UScriptRun.java | 110 * @param chars the array of characters over which to iterate. 116 public UScriptRun(char[] chars) in UScriptRun() argument 118 reset(chars); in UScriptRun() 125 * @param chars the array of characters over which to iterate. 133 public UScriptRun(char[] chars, int start, int count) in UScriptRun() argument 135 reset(chars, start, count); in UScriptRun() 199 * in <code>chars</code> starting at <code>start</code>. This allows 202 * @param chars the new array of characters over which to iterate. 210 public final void reset(char[] chars, int start, int count) in reset() argument 212 if (chars in reset() 231 reset(char[] chars) reset() argument [all...] |
/third_party/node/deps/npm/node_modules/iconv-lite/encodings/ |
H A D | sbcs-codec.js | 4 // Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that 13 if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)) 14 throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)"); 16 if (codecOptions.chars.length === 128) { 20 codecOptions.chars = asciiString + codecOptions.chars; 23 this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs [all...] |
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
H A D | DemoTextBox.java | 21 this.chars = new char[text.length()]; in DemoTextBox() 22 text.getChars(0, text.length(), chars, 0); in DemoTextBox() 43 g.drawChars(chars, index, breakPos[i] - index, x, y); in draw() 48 g.drawChars(chars, index, chars.length - index, x, y); in draw() 54 if (metrics.charsWidth(chars, 0, chars.length) > width) in breakText() 65 int w = metrics.charsWidth(chars, start, pos - start); in breakText() 91 private char[] chars; field in DemoTextBox
|
/third_party/lzma/CPP/Common/ |
H A D | MyString.cpp | 490 char *chars = _chars;
in AString() local 492 memcpy(chars, s, len);
in AString() 493 chars[len] = c;
in AString() 494 chars[(size_t)len + 1] = 0;
in AString() 500 char *chars = _chars;
in AString() local 501 memcpy(chars, s1, num1);
in AString() 502 memcpy(chars + num1, s2, num2 + 1);
in AString() 523 char *chars = _chars;
in AString() local 524 chars[0] = c;
in AString() 525 chars[ in AString() 550 char *chars = _chars; operator =() local 890 char *chars = _chars; Replace() local 1087 wchar_t *chars = _chars; UString() local 1097 wchar_t *chars = _chars; UString() local 1118 wchar_t *chars = _chars; UString() local 1126 wchar_t *chars = _chars; UString() local 1142 wchar_t *chars = _chars; UString() local 1152 wchar_t *chars = _chars; UString() local 1175 wchar_t *chars = _chars; operator =() local 1300 wchar_t *chars = _chars; operator =() local 1317 wchar_t *chars = _chars; Add_LF() local 1344 wchar_t *chars = _chars + _len; operator +=() local 1532 wchar_t *chars = _chars; Replace() local 1690 wchar_t *chars = _chars; SetFromAscii() local [all...] |
/third_party/python/Lib/idlelib/ |
H A D | searchengine.py | 145 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 146 while chars: 147 m = prog.search(chars[:-1], col) 156 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 157 if not chars and wrap: 161 chars = text.get("1.0", "2.0") 167 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 169 m = search_reverse(prog, chars[:-1], col) 184 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 185 col = len(chars) [all...] |
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | json_test.cc | 42 std::vector<uint8_t> chars = { in TEST() local 48 writer->HandleString8(SpanFrom(chars)); in TEST() 70 std::vector<uint8_t> chars; in TEST() local 71 chars.push_back(world[0]); in TEST() 72 chars.push_back(world[1]); in TEST() 73 chars.push_back('!'); in TEST() 74 chars.push_back('?'); in TEST() 75 chars.push_back('H'); in TEST() 76 chars.push_back('e'); in TEST() 77 chars in TEST() 89 std::vector<uint16_t> chars = {'a', 0xd800, 'b', 0xdada, 'c', 0xdbff, 'd'}; TEST() local 102 std::vector<uint16_t> chars = {'a', 0xdc00, 'b', 0xdede, 'c', 0xdfff, 'd'}; TEST() local 113 std::vector<uint16_t> chars = {'a', 'b', 'c', 0xffff, 'd'}; TEST() local 122 std::vector<uint8_t> chars = {'a', 0x7f, 'b'}; TEST() local [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | string-16.cc | 165 int chars = v8::base::OS::SNPrintF(buffer, kBufferSize, "%d", number); in appendNumber() local 166 DCHECK_LE(0, chars); in appendNumber() 167 m_buffer.insert(m_buffer.end(), buffer, buffer + chars); in appendNumber() 174 int chars = v8::base::OS::SNPrintF(buffer, kBufferSize, "%zu", number); in appendNumber() local 176 int chars = v8::base::OS::SNPrintF(buffer, kBufferSize, "%Iu", number); in appendNumber() local 178 DCHECK_LE(0, chars); in appendNumber() 179 m_buffer.insert(m_buffer.end(), buffer, buffer + chars); in appendNumber() 185 int chars = in appendUnsignedAsHex() local 187 DCHECK_LE(0, chars); in appendUnsignedAsHex() 188 m_buffer.insert(m_buffer.end(), buffer, buffer + chars); in appendUnsignedAsHex() 194 int chars = v8::base::OS::SNPrintF(buffer, kBufferSize, "%08" PRIx32, number); appendUnsignedAsHex() local 202 int chars = v8::base::OS::SNPrintF(buffer, kBufferSize, "%02" PRIx8, number); appendUnsignedAsHex() local [all...] |
/third_party/icu/icu4c/source/extra/scrptrun/ |
H A D | scrptrun.h | 42 ScriptRun(const UChar chars[], int32_t length); 44 ScriptRun(const UChar chars[], int32_t start, int32_t length); 50 void reset(const UChar chars[], int32_t start, int32_t length); 109 inline ScriptRun::ScriptRun(const UChar chars[], int32_t length) in ScriptRun() argument 111 reset(chars, 0, length); in ScriptRun() 114 inline ScriptRun::ScriptRun(const UChar chars[], int32_t start, int32_t length) in ScriptRun() argument 116 reset(chars, start, length); in ScriptRun() 150 inline void ScriptRun::reset(const UChar chars[], int32_t start, int32_t length) in reset() argument 152 charArray = chars; in reset()
|
/third_party/skia/third_party/externals/icu/source/extra/scrptrun/ |
H A D | scrptrun.h | 42 ScriptRun(const UChar chars[], int32_t length); 44 ScriptRun(const UChar chars[], int32_t start, int32_t length); 50 void reset(const UChar chars[], int32_t start, int32_t length); 109 inline ScriptRun::ScriptRun(const UChar chars[], int32_t length) in ScriptRun() argument 111 reset(chars, 0, length); in ScriptRun() 114 inline ScriptRun::ScriptRun(const UChar chars[], int32_t start, int32_t length) in ScriptRun() argument 116 reset(chars, start, length); in ScriptRun() 150 inline void ScriptRun::reset(const UChar chars[], int32_t start, int32_t length) in reset() argument 152 charArray = chars; in reset()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | duplicateLocalVariable1.js | 157 var chars = []; 159 chars.push(fb.readByte()); 161 return TestRunner.arrayCompare(chars, [0x54, 0xC3, 0xA8, 0xE1, 0xB4, 0xA3, 0xE2, 0x80, 0xA0, 0x0D, 0x0A]); 168 var chars = []; 170 chars.push(fb.readUtf8CodePoint()); 172 return TestRunner.arrayCompare(chars, [0x0054, 0x00E8, 0x1D23, 0x2020, 0x000D, 0x000A]); 179 var chars = [0x0054, 0x00E8, 0x1D23, 0x2020, 0x000D, 0x000A]; 180 for (var i in chars) { 181 fb.writeUtf8CodePoint(chars[i]); 198 var chars [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/ |
H A D | ReplaceableTest.java | 68 if (!tr.hasMetaData() || tr.chars.hasMetaData() in check() 86 ReplaceableString chars; field in ReplaceableTest.TestReplaceable 94 chars = new ReplaceableString(text); in TestReplaceable() 116 return chars.toString() + "{" + styles.toString() + "}"; in toString() 120 return chars.substring(start, limit); in substring() 125 return chars.length(); in length() 130 return chars.charAt(offset); in charAt() 135 return chars.char32At(offset); in char32At() 140 chars.getChars(srcStart, srcLimit, dst, dstStart); in getChars() 148 chars in replace() [all...] |
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
H A D | ReplaceableTest.java | 65 if (!tr.hasMetaData() || tr.chars.hasMetaData() in check() 83 ReplaceableString chars; field in ReplaceableTest.TestReplaceable 91 chars = new ReplaceableString(text); in TestReplaceable() 113 return chars.toString() + "{" + styles.toString() + "}"; in toString() 117 return chars.substring(start, limit); in substring() 122 return chars.length(); in length() 127 return chars.charAt(offset); in charAt() 132 return chars.char32At(offset); in char32At() 137 chars.getChars(srcStart, srcLimit, dst, dstStart); in getChars() 145 chars in replace() [all...] |
/third_party/node/deps/v8/tools/ |
H A D | shell-utils.h | 54 byte* chars = new byte[*size + 1]; in ReadFileAndRepeat() local 56 int read = static_cast<int>(fread(&chars[i], 1, file_size - i, file)); in ReadFileAndRepeat() 62 chars[i] = chars[i - file_size]; in ReadFileAndRepeat() 64 chars[*size] = 0; in ReadFileAndRepeat() 66 return chars; in ReadFileAndRepeat()
|
/third_party/icu/icu4c/source/common/ |
H A D | uniset_props.cpp | 195 RuleCharacterIterator chars(pattern, symbols, pos); in applyPatternIgnoreSpace() 196 applyPattern(chars, symbols, rebuiltPat, USET_IGNORE_SPACE, NULL, 0, status); in applyPatternIgnoreSpace() 198 if (chars.inVariable()) { in applyPatternIgnoreSpace() 199 // syntaxError(chars, "Extra chars in variable value"); in applyPatternIgnoreSpace() 247 * @param chars iterator over the pattern characters. Upon return 258 void UnicodeSet::applyPattern(RuleCharacterIterator& chars, in applyPattern() argument 273 // Recognized special forms for chars, sets: c-c s-s s&s in applyPattern() 296 while (mode != 2 && !chars.atEnd()) { in applyPattern() 309 if (resemblesPropertyPattern(chars, opt in applyPattern() 998 resemblesPropertyPattern(RuleCharacterIterator& chars, int32_t iterOpts) resemblesPropertyPattern() argument 1124 applyPropertyPattern(RuleCharacterIterator& chars, UnicodeString& rebuiltPat, UErrorCode& ec) applyPropertyPattern() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | uniset_props.cpp | 195 RuleCharacterIterator chars(pattern, symbols, pos); in applyPatternIgnoreSpace() 196 applyPattern(chars, symbols, rebuiltPat, USET_IGNORE_SPACE, nullptr, 0, status); in applyPatternIgnoreSpace() 198 if (chars.inVariable()) { in applyPatternIgnoreSpace() 199 // syntaxError(chars, "Extra chars in variable value"); in applyPatternIgnoreSpace() 247 * @param chars iterator over the pattern characters. Upon return 258 void UnicodeSet::applyPattern(RuleCharacterIterator& chars, in applyPattern() argument 273 // Recognized special forms for chars, sets: c-c s-s s&s in applyPattern() 296 while (mode != 2 && !chars.atEnd()) { in applyPattern() 309 if (resemblesPropertyPattern(chars, opt in applyPattern() 995 resemblesPropertyPattern(RuleCharacterIterator& chars, int32_t iterOpts) resemblesPropertyPattern() argument 1121 applyPropertyPattern(RuleCharacterIterator& chars, UnicodeString& rebuiltPat, UErrorCode& ec) applyPropertyPattern() argument [all...] |