Home
last modified time | relevance | path

Searched refs:newStart (Results 1 – 25 of 53) sorted by relevance

123

/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DStringReplacer.java119 int newStart = 0; in replace() local
131 newStart = cursorPos; in replace()
171 newStart = buf.length() + destLimit - destStart; // relative to start in replace()
217 newStart = destLimit - destStart; // relative to start in replace()
236 newStart = start; in replace()
239 while (n < 0 && newStart > 0) { in replace()
240 newStart -= UTF16.getCharCount(text.char32At(newStart-1)); in replace()
243 newStart += n; in replace()
245 newStart = start + outLen; in replace()
248 while (n > 0 && newStart < text.length()) { in replace()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DStringReplacer.java120 int newStart = 0; in replace() local
132 newStart = cursorPos; in replace()
172 newStart = buf.length() + destLimit - destStart; // relative to start in replace()
218 newStart = destLimit - destStart; // relative to start in replace()
237 newStart = start; in replace()
240 while (n < 0 && newStart > 0) { in replace()
241 newStart -= UTF16.getCharCount(text.char32At(newStart-1)); in replace()
244 newStart += n; in replace()
246 newStart = start + outLen; in replace()
249 while (n > 0 && newStart < text.length()) { in replace()
[all …]
DSimpleDateFormat.java3294 … int newStart = matchString(text, start, Calendar.YEAR, formatData.shortYearNames, null, cal); in subParse() local
3295 if (newStart > 0) { in subParse()
3296 return newStart; in subParse()
3331 int newStart = 0; in subParse() local
3333 newStart = (patternCharIndex == 2)? in subParse()
3338 if (newStart > 0) { in subParse()
3339 return newStart; in subParse()
3350 return newStart; in subParse()
3387 int newStart = 0; in subParse() local
3389 …if ((newStart = matchString(text, start, Calendar.DAY_OF_WEEK, formatData.weekdays, null, cal)) > … in subParse()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dstrrepl.cpp109 int32_t newStart = 0; in replace() local
121 newStart = cursorPos; in replace()
161 newStart = destLimit - destStart; // relative to start in replace()
191 newStart = destLimit - destStart; // relative to start in replace()
210 newStart = start; in replace()
213 while (n < 0 && newStart > 0) { in replace()
214 newStart -= U16_LENGTH(text.char32At(newStart-1)); in replace()
217 newStart += n; in replace()
219 newStart = start + outLen; in replace()
222 while (n > 0 && newStart < text.length()) { in replace()
[all …]
Dsmpdtfmt.cpp3253 …int32_t newStart = matchString(text, start, UCAL_YEAR, fSymbols->fShortYearNames, fSymbols->fShort… in subParse() local
3254 if (newStart > 0) { in subParse()
3255 return newStart; in subParse()
3305 int32_t newStart = 0; in subParse() local
3308newStart = matchString(text, start, UCAL_MONTH, fSymbols->fMonths, fSymbols->fMonthsCount, wideMon… in subParse()
3309 if (newStart > 0) { in subParse()
3310 return newStart; in subParse()
3314newStart = matchString(text, start, UCAL_MONTH, fSymbols->fShortMonths, fSymbols->fShortMonthsCoun… in subParse()
3318newStart = matchString(text, start, UCAL_MONTH, fSymbols->fStandaloneMonths, fSymbols->fStandalone… in subParse()
3319 if (newStart > 0) { in subParse()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dstrrepl.cpp109 int32_t newStart = 0; in replace() local
121 newStart = cursorPos; in replace()
161 newStart = destLimit - destStart; // relative to start in replace()
191 newStart = destLimit - destStart; // relative to start in replace()
210 newStart = start; in replace()
213 while (n < 0 && newStart > 0) { in replace()
214 newStart -= U16_LENGTH(text.char32At(newStart-1)); in replace()
217 newStart += n; in replace()
219 newStart = start + outLen; in replace()
222 while (n > 0 && newStart < text.length()) { in replace()
[all …]
Dsmpdtfmt.cpp3228 …int32_t newStart = matchString(text, start, UCAL_YEAR, fSymbols->fShortYearNames, fSymbols->fShort… in subParse() local
3229 if (newStart > 0) { in subParse()
3230 return newStart; in subParse()
3280 int32_t newStart = 0; in subParse() local
3283newStart = matchString(text, start, UCAL_MONTH, fSymbols->fMonths, fSymbols->fMonthsCount, wideMon… in subParse()
3284 if (newStart > 0) { in subParse()
3285 return newStart; in subParse()
3289newStart = matchString(text, start, UCAL_MONTH, fSymbols->fShortMonths, fSymbols->fShortMonthsCoun… in subParse()
3293newStart = matchString(text, start, UCAL_MONTH, fSymbols->fStandaloneMonths, fSymbols->fStandalone… in subParse()
3294 if (newStart > 0) { in subParse()
[all …]
/third_party/icu/icu4c/source/i18n/
Dstrrepl.cpp109 int32_t newStart = 0; in replace() local
121 newStart = cursorPos; in replace()
161 newStart = destLimit - destStart; // relative to start in replace()
191 newStart = destLimit - destStart; // relative to start in replace()
210 newStart = start; in replace()
213 while (n < 0 && newStart > 0) { in replace()
214 newStart -= U16_LENGTH(text.char32At(newStart-1)); in replace()
217 newStart += n; in replace()
219 newStart = start + outLen; in replace()
222 while (n > 0 && newStart < text.length()) { in replace()
[all …]
Dsmpdtfmt.cpp3228 …int32_t newStart = matchString(text, start, UCAL_YEAR, fSymbols->fShortYearNames, fSymbols->fShort… in subParse() local
3229 if (newStart > 0) { in subParse()
3230 return newStart; in subParse()
3280 int32_t newStart = 0; in subParse() local
3283newStart = matchString(text, start, UCAL_MONTH, fSymbols->fMonths, fSymbols->fMonthsCount, wideMon… in subParse()
3284 if (newStart > 0) { in subParse()
3285 return newStart; in subParse()
3289newStart = matchString(text, start, UCAL_MONTH, fSymbols->fShortMonths, fSymbols->fShortMonthsCoun… in subParse()
3293newStart = matchString(text, start, UCAL_MONTH, fSymbols->fStandaloneMonths, fSymbols->fStandalone… in subParse()
3294 if (newStart > 0) { in subParse()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dstrrepl.cpp109 int32_t newStart = 0; in replace() local
121 newStart = cursorPos; in replace()
161 newStart = destLimit - destStart; // relative to start in replace()
191 newStart = destLimit - destStart; // relative to start in replace()
210 newStart = start; in replace()
213 while (n < 0 && newStart > 0) { in replace()
214 newStart -= U16_LENGTH(text.char32At(newStart-1)); in replace()
217 newStart += n; in replace()
219 newStart = start + outLen; in replace()
222 while (n > 0 && newStart < text.length()) { in replace()
[all …]
Dsmpdtfmt.cpp3144 …int32_t newStart = matchString(text, start, UCAL_YEAR, fSymbols->fShortYearNames, fSymbols->fShort… in subParse() local
3145 if (newStart > 0) { in subParse()
3146 return newStart; in subParse()
3196 int32_t newStart = 0; in subParse() local
3199newStart = matchString(text, start, UCAL_MONTH, fSymbols->fMonths, fSymbols->fMonthsCount, wideMon… in subParse()
3200 if (newStart > 0) { in subParse()
3201 return newStart; in subParse()
3205newStart = matchString(text, start, UCAL_MONTH, fSymbols->fShortMonths, fSymbols->fShortMonthsCoun… in subParse()
3209newStart = matchString(text, start, UCAL_MONTH, fSymbols->fStandaloneMonths, fSymbols->fStandalone… in subParse()
3210 if (newStart > 0) { in subParse()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2Writable.java740 int start, newStart, movedStart; in compactData() local
745 newStart=UTRIE2_DATA_START_OFFSET; in compactData()
746 for(start=0, i=0; start<newStart; start+=UTRIE2_DATA_BLOCK_LENGTH, ++i) { in compactData()
756 for(start=newStart; start<dataLength;) { in compactData()
777 movedStart=findSameDataBlock(newStart, start, blockLength); in compactData()
795 overlap>0 && !equal_int(data, (newStart-overlap), start, overlap); in compactData()
798 if(overlap>0 || newStart<start) { in compactData()
800 movedStart=newStart-overlap; in compactData()
809 data[newStart++]=data[start++]; in compactData()
816 newStart=start; in compactData()
[all …]
DIntTrieBuilder.java572 int newStart = DATA_BLOCK_LENGTH; in compact() local
574 for (int start = newStart; start < m_dataLength_;) { in compact()
587 i = findSameDataBlock(m_data_, newStart, start, in compact()
604 i>0 && !equal_int(m_data_, newStart-i, start, i); in compact()
611 m_map_[start >>> SHIFT_] = newStart - i; in compact()
615 m_data_[newStart ++] = m_data_[start ++]; in compact()
618 else if (newStart < start) { in compact()
620 m_map_[start >>> SHIFT_] = newStart; in compact()
622 m_data_[newStart ++] = m_data_[start ++]; in compact()
627 newStart += DATA_BLOCK_LENGTH; in compact()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DTrie2Writable.java742 int start, newStart, movedStart; in compactData() local
747 newStart=UTRIE2_DATA_START_OFFSET; in compactData()
748 for(start=0, i=0; start<newStart; start+=UTRIE2_DATA_BLOCK_LENGTH, ++i) { in compactData()
758 for(start=newStart; start<dataLength;) { in compactData()
779 movedStart=findSameDataBlock(newStart, start, blockLength); in compactData()
797 overlap>0 && !equal_int(data, (newStart-overlap), start, overlap); in compactData()
800 if(overlap>0 || newStart<start) { in compactData()
802 movedStart=newStart-overlap; in compactData()
811 data[newStart++]=data[start++]; in compactData()
818 newStart=start; in compactData()
[all …]
DIntTrieBuilder.java574 int newStart = DATA_BLOCK_LENGTH; in compact() local
576 for (int start = newStart; start < m_dataLength_;) { in compact()
589 i = findSameDataBlock(m_data_, newStart, start, in compact()
606 i>0 && !equal_int(m_data_, newStart-i, start, i); in compact()
613 m_map_[start >>> SHIFT_] = newStart - i; in compact()
617 m_data_[newStart ++] = m_data_[start ++]; in compact()
620 else if (newStart < start) { in compact()
622 m_map_[start >>> SHIFT_] = newStart; in compact()
624 m_data_[newStart ++] = m_data_[start ++]; in compact()
629 newStart += DATA_BLOCK_LENGTH; in compact()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/makeconv/
Dgenmbcs.cpp1184 uint16_t i, start, prevEnd, newStart; in singleCompactStage2() local
1190 start=newStart=MBCS_STAGE_2_FIRST_ASSIGNED; in singleCompactStage2()
1192 prevEnd=(uint16_t)(newStart-1); in singleCompactStage2()
1198 map[start>>MBCS_STAGE_2_BLOCK_SIZE_SHIFT]=(uint16_t)(newStart-i); in singleCompactStage2()
1203 mbcsData->stage2Single[newStart++]=mbcsData->stage2Single[start++]; in singleCompactStage2()
1205 } else if(newStart<start) { in singleCompactStage2()
1207 map[start>>MBCS_STAGE_2_BLOCK_SIZE_SHIFT]=newStart; in singleCompactStage2()
1209 mbcsData->stage2Single[newStart++]=mbcsData->stage2Single[start++]; in singleCompactStage2()
1213 start=newStart+=MBCS_STAGE_2_BLOCK_SIZE; in singleCompactStage2()
1218 if(VERBOSE && newStart<mbcsData->stage2Top) { in singleCompactStage2()
[all …]
/third_party/icu/icu4c/source/tools/makeconv/
Dgenmbcs.cpp1184 uint16_t i, start, prevEnd, newStart; in singleCompactStage2() local
1190 start=newStart=MBCS_STAGE_2_FIRST_ASSIGNED; in singleCompactStage2()
1192 prevEnd=(uint16_t)(newStart-1); in singleCompactStage2()
1198 map[start>>MBCS_STAGE_2_BLOCK_SIZE_SHIFT]=(uint16_t)(newStart-i); in singleCompactStage2()
1203 mbcsData->stage2Single[newStart++]=mbcsData->stage2Single[start++]; in singleCompactStage2()
1205 } else if(newStart<start) { in singleCompactStage2()
1207 map[start>>MBCS_STAGE_2_BLOCK_SIZE_SHIFT]=newStart; in singleCompactStage2()
1209 mbcsData->stage2Single[newStart++]=mbcsData->stage2Single[start++]; in singleCompactStage2()
1213 start=newStart+=MBCS_STAGE_2_BLOCK_SIZE; in singleCompactStage2()
1218 if(VERBOSE && newStart<mbcsData->stage2Top) { in singleCompactStage2()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/tools/makeconv/
Dgenmbcs.cpp1183 uint16_t i, start, prevEnd, newStart; in singleCompactStage2() local
1189 start=newStart=MBCS_STAGE_2_FIRST_ASSIGNED; in singleCompactStage2()
1191 prevEnd=(uint16_t)(newStart-1); in singleCompactStage2()
1197 map[start>>MBCS_STAGE_2_BLOCK_SIZE_SHIFT]=(uint16_t)(newStart-i); in singleCompactStage2()
1202 mbcsData->stage2Single[newStart++]=mbcsData->stage2Single[start++]; in singleCompactStage2()
1204 } else if(newStart<start) { in singleCompactStage2()
1206 map[start>>MBCS_STAGE_2_BLOCK_SIZE_SHIFT]=newStart; in singleCompactStage2()
1208 mbcsData->stage2Single[newStart++]=mbcsData->stage2Single[start++]; in singleCompactStage2()
1212 start=newStart+=MBCS_STAGE_2_BLOCK_SIZE; in singleCompactStage2()
1217 if(VERBOSE && newStart<mbcsData->stage2Top) { in singleCompactStage2()
[all …]
/third_party/icu/icu4c/source/common/
Dutrie2_builder.cpp1035 int32_t start, newStart, movedStart; in compactData() local
1040 newStart=UTRIE2_DATA_START_OFFSET; in compactData()
1041 for(start=0, i=0; start<newStart; start+=UTRIE2_DATA_BLOCK_LENGTH, ++i) { in compactData()
1051 for(start=newStart; start<trie->dataLength;) { in compactData()
1072 if( (movedStart=findSameDataBlock(trie->data, newStart, start, blockLength)) in compactData()
1094 overlap>0 && !equal_uint32(trie->data+(newStart-overlap), trie->data+start, overlap); in compactData()
1100 if(overlap>0 || newStart<start) { in compactData()
1102 movedStart=newStart-overlap; in compactData()
1111 trie->data[newStart++]=trie->data[start++]; in compactData()
1118 newStart=start; in compactData()
[all …]
Dutrie.cpp591 int32_t i, start, newStart, overlapStart; in utrie_compact() local
618 newStart=UTRIE_DATA_BLOCK_LENGTH; in utrie_compact()
619 for(start=newStart; start<trie->dataLength;) { in utrie_compact()
637 (i=_findSameDataBlock(trie->data, newStart, start, in utrie_compact()
655 i>0 && !equal_uint32(trie->data+(newStart-i), trie->data+start, i); in utrie_compact()
663 trie->map[start>>UTRIE_SHIFT]=newStart-i; in utrie_compact()
668 trie->data[newStart++]=trie->data[start++]; in utrie_compact()
670 } else if(newStart<start) { in utrie_compact()
672 trie->map[start>>UTRIE_SHIFT]=newStart; in utrie_compact()
674 trie->data[newStart++]=trie->data[start++]; in utrie_compact()
[all …]
/third_party/node/deps/icu-small/source/common/
Dutrie2_builder.cpp1035 int32_t start, newStart, movedStart; in compactData() local
1040 newStart=UTRIE2_DATA_START_OFFSET; in compactData()
1041 for(start=0, i=0; start<newStart; start+=UTRIE2_DATA_BLOCK_LENGTH, ++i) { in compactData()
1051 for(start=newStart; start<trie->dataLength;) { in compactData()
1072 if( (movedStart=findSameDataBlock(trie->data, newStart, start, blockLength)) in compactData()
1094 overlap>0 && !equal_uint32(trie->data+(newStart-overlap), trie->data+start, overlap); in compactData()
1100 if(overlap>0 || newStart<start) { in compactData()
1102 movedStart=newStart-overlap; in compactData()
1111 trie->data[newStart++]=trie->data[start++]; in compactData()
1118 newStart=start; in compactData()
[all …]
Dutrie.cpp591 int32_t i, start, newStart, overlapStart; in utrie_compact() local
618 newStart=UTRIE_DATA_BLOCK_LENGTH; in utrie_compact()
619 for(start=newStart; start<trie->dataLength;) { in utrie_compact()
637 (i=_findSameDataBlock(trie->data, newStart, start, in utrie_compact()
655 i>0 && !equal_uint32(trie->data+(newStart-i), trie->data+start, i); in utrie_compact()
663 trie->map[start>>UTRIE_SHIFT]=newStart-i; in utrie_compact()
668 trie->data[newStart++]=trie->data[start++]; in utrie_compact()
670 } else if(newStart<start) { in utrie_compact()
672 trie->map[start>>UTRIE_SHIFT]=newStart; in utrie_compact()
674 trie->data[newStart++]=trie->data[start++]; in utrie_compact()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dutrie2_builder.cpp1033 int32_t start, newStart, movedStart; in compactData() local
1038 newStart=UTRIE2_DATA_START_OFFSET; in compactData()
1039 for(start=0, i=0; start<newStart; start+=UTRIE2_DATA_BLOCK_LENGTH, ++i) { in compactData()
1049 for(start=newStart; start<trie->dataLength;) { in compactData()
1070 if( (movedStart=findSameDataBlock(trie->data, newStart, start, blockLength)) in compactData()
1092 overlap>0 && !equal_uint32(trie->data+(newStart-overlap), trie->data+start, overlap); in compactData()
1098 if(overlap>0 || newStart<start) { in compactData()
1100 movedStart=newStart-overlap; in compactData()
1109 trie->data[newStart++]=trie->data[start++]; in compactData()
1116 newStart=start; in compactData()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dutrie2_builder.cpp1035 int32_t start, newStart, movedStart; in compactData() local
1040 newStart=UTRIE2_DATA_START_OFFSET; in compactData()
1041 for(start=0, i=0; start<newStart; start+=UTRIE2_DATA_BLOCK_LENGTH, ++i) { in compactData()
1051 for(start=newStart; start<trie->dataLength;) { in compactData()
1072 if( (movedStart=findSameDataBlock(trie->data, newStart, start, blockLength)) in compactData()
1094 overlap>0 && !equal_uint32(trie->data+(newStart-overlap), trie->data+start, overlap); in compactData()
1100 if(overlap>0 || newStart<start) { in compactData()
1102 movedStart=newStart-overlap; in compactData()
1111 trie->data[newStart++]=trie->data[start++]; in compactData()
1118 newStart=start; in compactData()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java3316 … int newStart = matchString(text, start, Calendar.YEAR, formatData.shortYearNames, null, cal); in subParse() local
3317 if (newStart > 0) { in subParse()
3318 return newStart; in subParse()
3353 int newStart = 0; in subParse() local
3355 newStart = (patternCharIndex == 2)? in subParse()
3360 if (newStart > 0) { in subParse()
3361 return newStart; in subParse()
3372 return newStart; in subParse()
3409 int newStart = 0; in subParse() local
3411 …if ((newStart = matchString(text, start, Calendar.DAY_OF_WEEK, formatData.weekdays, null, cal)) > … in subParse()
[all …]

123