/third_party/skia/third_party/externals/icu/source/common/ |
D | unistr_case.cpp | 103 int32_t oldLength = length(); in caseMap() local 115 if (writable ? oldLength <= UPRV_LENGTHOF(oldBuffer) : oldLength < US_STACKBUF_SIZE) { in caseMap() 121 u_memcpy(oldBuffer, buffer, oldLength); in caseMap() 135 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 141 oldArray, oldLength, NULL, errorCode); in caseMap() 161 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 167 oldArray, oldLength, &edits, errorCode); in caseMap() 170 newLength = oldLength + edits.lengthDelta(); in caseMap() 171 if (newLength > oldLength && !cloneArrayIfNeeded(newLength, newLength)) { in caseMap() 175 doReplace(ei.destinationIndex(), ei.oldLength(), in caseMap() [all …]
|
D | unistr.cpp | 1165 int32_t oldLength, in findAndReplace() argument 1175 oldText.pinIndices(oldStart, oldLength); in findAndReplace() 1178 if(oldLength == 0) { in findAndReplace() 1182 while(length > 0 && length >= oldLength) { in findAndReplace() 1183 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace() 1189 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1190 length -= pos + oldLength - start; in findAndReplace() 1422 int32_t oldLength = this->length(); in doReplace() local 1431 setLength(oldLength - length); in doReplace() 1435 if(length >= (oldLength - start)) { in doReplace() [all …]
|
D | edits.cpp | 142 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 144 if(oldLength < 0 || newLength < 0) { in addReplace() 148 if (oldLength == 0 && newLength == 0) { in addReplace() 152 int32_t newDelta = newLength - oldLength; in addReplace() 163 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 166 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 179 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 180 head |= oldLength << 6; in addReplace() 185 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() 186 head |= oldLength << 6; in addReplace() [all …]
|
D | unistr_props.cpp | 37 int32_t oldLength = this->length(); in trim() local 38 int32_t i = oldLength, length; in trim() 51 if(length < oldLength) { in trim()
|
/third_party/icu/icu4c/source/common/ |
D | unistr_case.cpp | 103 int32_t oldLength = length(); in caseMap() local 115 if (writable ? oldLength <= UPRV_LENGTHOF(oldBuffer) : oldLength < US_STACKBUF_SIZE) { in caseMap() 121 u_memcpy(oldBuffer, buffer, oldLength); in caseMap() 135 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 141 oldArray, oldLength, NULL, errorCode); in caseMap() 161 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 167 oldArray, oldLength, &edits, errorCode); in caseMap() 170 newLength = oldLength + edits.lengthDelta(); in caseMap() 171 if (newLength > oldLength && !cloneArrayIfNeeded(newLength, newLength)) { in caseMap() 175 doReplace(ei.destinationIndex(), ei.oldLength(), in caseMap() [all …]
|
D | unistr.cpp | 1165 int32_t oldLength, in findAndReplace() argument 1175 oldText.pinIndices(oldStart, oldLength); in findAndReplace() 1178 if(oldLength == 0) { in findAndReplace() 1182 while(length > 0 && length >= oldLength) { in findAndReplace() 1183 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace() 1189 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1190 length -= pos + oldLength - start; in findAndReplace() 1422 int32_t oldLength = this->length(); in doReplace() local 1431 setLength(oldLength - length); in doReplace() 1435 if(length >= (oldLength - start)) { in doReplace() [all …]
|
D | edits.cpp | 142 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 144 if(oldLength < 0 || newLength < 0) { in addReplace() 148 if (oldLength == 0 && newLength == 0) { in addReplace() 152 int32_t newDelta = newLength - oldLength; in addReplace() 163 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 166 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 179 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 180 head |= oldLength << 6; in addReplace() 185 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() 186 head |= oldLength << 6; in addReplace() [all …]
|
D | unistr_props.cpp | 37 int32_t oldLength = this->length(); in trim() local 38 int32_t i = oldLength, length; in trim() 51 if(length < oldLength) { in trim()
|
/third_party/node/deps/icu-small/source/common/ |
D | unistr_case.cpp | 103 int32_t oldLength = length(); in caseMap() local 115 if (writable ? oldLength <= UPRV_LENGTHOF(oldBuffer) : oldLength < US_STACKBUF_SIZE) { in caseMap() 121 u_memcpy(oldBuffer, buffer, oldLength); in caseMap() 135 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 141 oldArray, oldLength, NULL, errorCode); in caseMap() 161 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 167 oldArray, oldLength, &edits, errorCode); in caseMap() 170 newLength = oldLength + edits.lengthDelta(); in caseMap() 171 if (newLength > oldLength && !cloneArrayIfNeeded(newLength, newLength)) { in caseMap() 175 doReplace(ei.destinationIndex(), ei.oldLength(), in caseMap() [all …]
|
D | unistr.cpp | 1165 int32_t oldLength, in findAndReplace() argument 1175 oldText.pinIndices(oldStart, oldLength); in findAndReplace() 1178 if(oldLength == 0) { in findAndReplace() 1182 while(length > 0 && length >= oldLength) { in findAndReplace() 1183 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace() 1189 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1190 length -= pos + oldLength - start; in findAndReplace() 1422 int32_t oldLength = this->length(); in doReplace() local 1431 setLength(oldLength - length); in doReplace() 1435 if(length >= (oldLength - start)) { in doReplace() [all …]
|
D | edits.cpp | 142 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 144 if(oldLength < 0 || newLength < 0) { in addReplace() 148 if (oldLength == 0 && newLength == 0) { in addReplace() 152 int32_t newDelta = newLength - oldLength; in addReplace() 163 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 166 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 179 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 180 head |= oldLength << 6; in addReplace() 185 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() 186 head |= oldLength << 6; in addReplace() [all …]
|
D | unistr_props.cpp | 37 int32_t oldLength = this->length(); in trim() local 38 int32_t i = oldLength, length; in trim() 51 if(length < oldLength) { in trim()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | unistr_case.cpp | 103 int32_t oldLength = length(); in caseMap() local 115 if (writable ? oldLength <= UPRV_LENGTHOF(oldBuffer) : oldLength < US_STACKBUF_SIZE) { in caseMap() 121 u_memcpy(oldBuffer, buffer, oldLength); in caseMap() 135 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 141 oldArray, oldLength, NULL, errorCode); in caseMap() 161 oldString.setTo(FALSE, oldArray, oldLength); in caseMap() 167 oldArray, oldLength, &edits, errorCode); in caseMap() 170 newLength = oldLength + edits.lengthDelta(); in caseMap() 171 if (newLength > oldLength && !cloneArrayIfNeeded(newLength, newLength)) { in caseMap() 175 doReplace(ei.destinationIndex(), ei.oldLength(), in caseMap() [all …]
|
D | unistr.cpp | 1166 int32_t oldLength, in findAndReplace() argument 1176 oldText.pinIndices(oldStart, oldLength); in findAndReplace() 1179 if(oldLength == 0) { in findAndReplace() 1183 while(length > 0 && length >= oldLength) { in findAndReplace() 1184 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace() 1190 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1191 length -= pos + oldLength - start; in findAndReplace() 1423 int32_t oldLength = this->length(); in doReplace() local 1432 setLength(oldLength - length); in doReplace() 1436 if(length >= (oldLength - start)) { in doReplace() [all …]
|
D | edits.cpp | 141 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 143 if(oldLength < 0 || newLength < 0) { in addReplace() 147 if (oldLength == 0 && newLength == 0) { in addReplace() 151 int32_t newDelta = newLength - oldLength; in addReplace() 162 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 165 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 178 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 179 head |= oldLength << 6; in addReplace() 184 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() 185 head |= oldLength << 6; in addReplace() [all …]
|
D | unistr_props.cpp | 37 int32_t oldLength = this->length(); in trim() local 38 int32_t i = oldLength, length; in trim() 51 if(length < oldLength) { in trim()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | Edits.java | 139 public void addReplace(int oldLength, int newLength) { in addReplace() argument 140 if(oldLength < 0 || newLength < 0) { in addReplace() 142 "addReplace(" + oldLength + ", " + newLength + in addReplace() 145 if (oldLength == 0 && newLength == 0) { in addReplace() 149 int newDelta = newLength - oldLength; in addReplace() 159 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 162 int u = (oldLength << 12) | (newLength << 9); in addReplace() 175 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 176 head |= oldLength << 6; in addReplace() 181 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | Edits.java | 144 public void addReplace(int oldLength, int newLength) { in addReplace() argument 145 if(oldLength < 0 || newLength < 0) { in addReplace() 147 "addReplace(" + oldLength + ", " + newLength + in addReplace() 150 if (oldLength == 0 && newLength == 0) { in addReplace() 154 int newDelta = newLength - oldLength; in addReplace() 164 if(0 < oldLength && oldLength <= MAX_SHORT_CHANGE_OLD_LENGTH && in addReplace() 167 int u = (oldLength << 12) | (newLength << 9); in addReplace() 180 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 181 head |= oldLength << 6; in addReplace() 186 if(oldLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | testutil.cpp | 76 return UnicodeString() + ei.oldLength() + u"->" + ei.newLength(); in printOneEdit() 78 return UnicodeString() + ei.oldLength() + u"=" + ei.newLength(); in printOneEdit() 95 int32_t prevSrcIndex = srcIndex - expected[i].oldLength; in srcIndexFromDest() 122 int32_t prevSrcIndex = srcIndex - expected[i].oldLength; in destIndexFromSrc() 184 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei1.oldLength()); in checkEditsIter() 191 if (expect.oldLength > 0) { in checkEditsIter() 194 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei2.oldLength()); in checkEditsIter() 210 test.assertEquals(msg + u":" + __LINE__, expect.oldLength, ei2.oldLength()); in checkEditsIter() 223 expSrcIndex += expect.oldLength; in checkEditsIter() 232 test.assertEquals(msg + u":" + __LINE__, 0, ei1.oldLength()); in checkEditsIter() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 829 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 830 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 832 this.oldLength = oldLength; in EditChange() 839 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 841 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 858 int prevSrcIndex = srcIndex - expected[i].oldLength; in srcIndexFromDest() 885 int prevSrcIndex = srcIndex - expected[i].oldLength; in destIndexFromSrc() 934 assertEquals(msg, expect.oldLength, ei1.oldLength()); in checkEditsIter() 941 if (expect.oldLength > 0) { in checkEditsIter() 944 assertEquals(msg, expect.oldLength, ei2.oldLength()); in checkEditsIter() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 812 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 813 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 815 this.oldLength = oldLength; in EditChange() 822 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 824 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 841 int prevSrcIndex = srcIndex - expected[i].oldLength; in srcIndexFromDest() 868 int prevSrcIndex = srcIndex - expected[i].oldLength; in destIndexFromSrc() 917 assertEquals(msg, expect.oldLength, ei1.oldLength()); in checkEditsIter() 924 if (expect.oldLength > 0) { in checkEditsIter() 927 assertEquals(msg, expect.oldLength, ei2.oldLength()); in checkEditsIter() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/ |
D | GlyphTableSubsetter.java | 77 int oldLength = locaTable.glyphLength(oldGlyphId); in subset() local 78 Glyph glyph = glyphTable.glyph(oldOffset, oldLength); in subset() 85 System.out.println("\toldLength = " + oldLength); in subset()
|
D | GlyphTableStripper.java | 58 int oldLength = locaTable.glyphLength(i); in subset() local 59 Glyph glyph = glyphTable.glyph(oldOffset, oldLength); in subset()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/ |
D | GlyphTableSubsetter.java | 77 int oldLength = locaTable.glyphLength(oldGlyphId); in subset() local 78 Glyph glyph = glyphTable.glyph(oldOffset, oldLength); in subset() 85 System.out.println("\toldLength = " + oldLength); in subset()
|
D | GlyphTableStripper.java | 58 int oldLength = locaTable.glyphLength(i); in subset() local 59 Glyph glyph = glyphTable.glyph(oldOffset, oldLength); in subset()
|