/external/icu/icu4c/source/common/ |
D | ucnv_u7.c | 212 int32_t *offsets; in _UTF7ToUnicodeWithOffsets() local 236 offsets=pArgs->offsets; in _UTF7ToUnicodeWithOffsets() 278 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets() 279 *offsets++=sourceIndex++; in _UTF7ToUnicodeWithOffsets() 373 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets() 374 *offsets++=sourceIndex; in _UTF7ToUnicodeWithOffsets() 384 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets() 385 *offsets++=sourceIndex; in _UTF7ToUnicodeWithOffsets() 395 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets() 396 *offsets++=sourceIndex; in _UTF7ToUnicodeWithOffsets() [all …]
|
D | ucnvlat1.c | 37 int32_t *offsets; in _Latin1ToUnicodeWithOffsets() local 45 offsets=pArgs->offsets; in _Latin1ToUnicodeWithOffsets() 81 if(offsets!=NULL) { in _Latin1ToUnicodeWithOffsets() 83 offsets[0]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() 84 offsets[1]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() 85 offsets[2]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() 86 offsets[3]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() 87 offsets[4]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() 88 offsets[5]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() 89 offsets[6]=sourceIndex++; in _Latin1ToUnicodeWithOffsets() [all …]
|
D | ucnv_u16.c | 53 int32_t *offsets; in _UTF16BEFromUnicodeWithOffsets() local 74 &pArgs->offsets, -1, in _UTF16BEFromUnicodeWithOffsets() 86 offsets=pArgs->offsets; in _UTF16BEFromUnicodeWithOffsets() 101 if(offsets!=NULL) { in _UTF16BEFromUnicodeWithOffsets() 102 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets() 103 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets() 104 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets() 105 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets() 122 if(offsets==NULL) { in _UTF16BEFromUnicodeWithOffsets() 149 *offsets++=sourceIndex; in _UTF16BEFromUnicodeWithOffsets() [all …]
|
D | ucnv_cnv.c | 50 int32_t **offsets, in ucnv_fromUWriteBytes() argument 57 if(offsets==NULL || (o=*offsets)==NULL) { in ucnv_fromUWriteBytes() 69 *offsets=o; in ucnv_fromUWriteBytes() 90 int32_t **offsets, in ucnv_toUWriteUChars() argument 97 if(offsets==NULL || (o=*offsets)==NULL) { in ucnv_toUWriteUChars() 109 *offsets=o; in ucnv_toUWriteUChars() 130 int32_t **offsets, in ucnv_toUWriteCodePoint() argument 152 if(offsets!=NULL && (o=*offsets)!=NULL) { in ucnv_toUWriteCodePoint() 157 *offsets=o; in ucnv_toUWriteCodePoint()
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetUTF7.java | 184 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() argument 242 if (offsets!= null) { in decodeLoop() 243 offsets.put(sourceIndex++); in decodeLoop() 351 if (offsets != null) { in decodeLoop() 352 offsets.put(sourceIndex); in decodeLoop() 370 if (offsets != null) { in decodeLoop() 371 offsets.put(sourceIndex); in decodeLoop() 389 if (offsets != null) { in decodeLoop() 390 offsets.put(sourceIndex); in decodeLoop() 407 if (offsets != null) { in decodeLoop() [all …]
|
D | CharsetBOCU1.java | 387 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() argument 415 labelType = fastSingle(source, target, offsets); in encodeLoop() 418 labelType = getTrail(source, target, offsets); in encodeLoop() 421 labelType = regularLoop(source, target, offsets); in encodeLoop() 429 …private int fastSingle(CharBuffer source, ByteBuffer target, IntBuffer offsets){ … in fastSingle() argument 443 if(offsets!=null){ in fastSingle() 444 offsets.put(nextSourceIndex++); in fastSingle() 453 if(offsets!=null){ in fastSingle() 454 offsets.put(nextSourceIndex++); in fastSingle() 466 private int getTrail(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in getTrail() argument [all …]
|
D | CharsetSCSU.java | 234 protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, in decodeLoop() argument 258 labelType = fastSingle(source, target, offsets, ByteMode); in decodeLoop() 262 labelType = singleByteMode(source, target, offsets, ByteMode); in decodeLoop() 265 endLoop(source, target, offsets); in decodeLoop() 272 labelType = fastSingle(source, target, offsets, UnicodeMode); in decodeLoop() 276 labelType = singleByteMode(source, target, offsets, UnicodeMode); in decodeLoop() 279 endLoop(source, target, offsets); in decodeLoop() 288 … private int fastSingle(ByteBuffer source, CharBuffer target, IntBuffer offsets, int modeType){ in fastSingle() argument 299 if(offsets != null){ in fastSingle() 300 offsets.put(sourceIndex); in fastSingle() [all …]
|
D | CharsetHZ.java | 64 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() argument 90 if (offsets != null) { in decodeLoop() 91 offsets.put(source.position() - 2); in decodeLoop() 192 if (offsets != null) { in decodeLoop() 193 offsets.put(source.position() - 1 - (isStateDBCS ? 1 : 0)); in decodeLoop() 239 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() argument 266 concatEscape(source, target, offsets, TILDE_ESCAPE); in encodeLoop() 289 concatEscape(source, target, offsets, SB_ESCAPE); in encodeLoop() 294 concatEscape(source, target, offsets, DB_ESCAPE); in encodeLoop() 303 if (offsets != null) { in encodeLoop() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneOffsetLocalTest.java | 111 int[] offsets = new int[2]; in TestGetOffsetAroundTransition() local 178 TESTZONES[i].getOffset(MILLIS[m], true, offsets); in TestGetOffsetAroundTransition() 179 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition() 182 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition() 192 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_STD, BasicTimeZone.LOCAL_STD, offsets); in TestGetOffsetAroundTransition() 193 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition() 196 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition() 206 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_DST, BasicTimeZone.LOCAL_DST, offsets); in TestGetOffsetAroundTransition() 207 if (offsets[0] != OFFSETS3[m][0] || offsets[1] != OFFSETS3[m][1]) { in TestGetOffsetAroundTransition() 210 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneOffsetLocalTest.java | 107 int[] offsets = new int[2]; in TestGetOffsetAroundTransition() local 174 TESTZONES[i].getOffset(MILLIS[m], true, offsets); in TestGetOffsetAroundTransition() 175 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition() 178 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition() 188 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_STD, BasicTimeZone.LOCAL_STD, offsets); in TestGetOffsetAroundTransition() 189 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition() 192 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition() 202 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_DST, BasicTimeZone.LOCAL_DST, offsets); in TestGetOffsetAroundTransition() 203 if (offsets[0] != OFFSETS3[m][0] || offsets[1] != OFFSETS3[m][1]) { in TestGetOffsetAroundTransition() 206 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | SimplePatternFormatterTest.java | 53 int[] offsets = new int[1]; in TestWithNoPlaceholders() local 57 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoPlaceholders() 61 offsets[0]); in TestWithNoPlaceholders() 143 int[] offsets = new int[6]; in TestWithPlaceholders() local 149 offsets, in TestWithPlaceholders() 153 verifyOffsets(expectedOffsets, offsets); in TestWithPlaceholders() 170 int[] offsets = new int[4]; in TestFormatReplaceNoOptimization() local 177 offsets, in TestFormatReplaceNoOptimization() 181 verifyOffsets(expectedOffsets, offsets); in TestFormatReplaceNoOptimization() 187 int[] offsets = new int[4]; in TestFormatReplaceNoOptimizationLeadingText() local [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | SimplePatternFormatterTest.java | 57 int[] offsets = new int[1]; in TestWithNoPlaceholders() local 61 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoPlaceholders() 65 offsets[0]); in TestWithNoPlaceholders() 147 int[] offsets = new int[6]; in TestWithPlaceholders() local 153 offsets, in TestWithPlaceholders() 157 verifyOffsets(expectedOffsets, offsets); in TestWithPlaceholders() 174 int[] offsets = new int[4]; in TestFormatReplaceNoOptimization() local 181 offsets, in TestFormatReplaceNoOptimization() 185 verifyOffsets(expectedOffsets, offsets); in TestFormatReplaceNoOptimization() 191 int[] offsets = new int[4]; in TestFormatReplaceNoOptimizationLeadingText() local [all …]
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | TitlecaseTransliterator.java | 62 Position offsets, boolean isIncremental) { in handleTransliterate() argument 70 if (offsets.start >= offsets.limit) { in handleTransliterate() 86 … for (start = offsets.start - 1; start >= offsets.contextStart; start -= UTF16.getCharCount(c)) { in handleTransliterate() 103 iter.setIndex(offsets.start); in handleTransliterate() 104 iter.setLimit(offsets.limit); in handleTransliterate() 105 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 126 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 144 offsets.limit += delta; in handleTransliterate() 145 offsets.contextLimit += delta; in handleTransliterate() 149 offsets.start = offsets.limit; in handleTransliterate()
|
D | CaseFoldTransliterator.java | 57 Position offsets, boolean isIncremental) { in handleTransliterate() argument 62 if(offsets.start >= offsets.limit) { in handleTransliterate() 73 iter.setIndex(offsets.start); in handleTransliterate() 74 iter.setLimit(offsets.limit); in handleTransliterate() 75 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 82 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 100 offsets.limit += delta; in handleTransliterate() 101 offsets.contextLimit += delta; in handleTransliterate() 104 offsets.start = offsets.limit; in handleTransliterate()
|
D | LowercaseTransliterator.java | 64 Position offsets, boolean isIncremental) { in handleTransliterate() argument 69 if(offsets.start >= offsets.limit) { in handleTransliterate() 80 iter.setIndex(offsets.start); in handleTransliterate() 81 iter.setLimit(offsets.limit); in handleTransliterate() 82 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 89 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 107 offsets.limit += delta; in handleTransliterate() 108 offsets.contextLimit += delta; in handleTransliterate() 111 offsets.start = offsets.limit; in handleTransliterate()
|
D | UppercaseTransliterator.java | 60 Position offsets, boolean isIncremental) { in handleTransliterate() argument 65 if(offsets.start >= offsets.limit) { in handleTransliterate() 76 iter.setIndex(offsets.start); in handleTransliterate() 77 iter.setLimit(offsets.limit); in handleTransliterate() 78 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 85 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 103 offsets.limit += delta; in handleTransliterate() 104 offsets.contextLimit += delta; in handleTransliterate() 107 offsets.start = offsets.limit; in handleTransliterate()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | TitlecaseTransliterator.java | 63 Position offsets, boolean isIncremental) { in handleTransliterate() argument 71 if (offsets.start >= offsets.limit) { in handleTransliterate() 87 … for (start = offsets.start - 1; start >= offsets.contextStart; start -= UTF16.getCharCount(c)) { in handleTransliterate() 104 iter.setIndex(offsets.start); in handleTransliterate() 105 iter.setLimit(offsets.limit); in handleTransliterate() 106 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 127 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 145 offsets.limit += delta; in handleTransliterate() 146 offsets.contextLimit += delta; in handleTransliterate() 150 offsets.start = offsets.limit; in handleTransliterate()
|
D | CaseFoldTransliterator.java | 58 Position offsets, boolean isIncremental) { in handleTransliterate() argument 63 if(offsets.start >= offsets.limit) { in handleTransliterate() 74 iter.setIndex(offsets.start); in handleTransliterate() 75 iter.setLimit(offsets.limit); in handleTransliterate() 76 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 83 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 101 offsets.limit += delta; in handleTransliterate() 102 offsets.contextLimit += delta; in handleTransliterate() 105 offsets.start = offsets.limit; in handleTransliterate()
|
D | UppercaseTransliterator.java | 61 Position offsets, boolean isIncremental) { in handleTransliterate() argument 66 if(offsets.start >= offsets.limit) { in handleTransliterate() 77 iter.setIndex(offsets.start); in handleTransliterate() 78 iter.setLimit(offsets.limit); in handleTransliterate() 79 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 86 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 104 offsets.limit += delta; in handleTransliterate() 105 offsets.contextLimit += delta; in handleTransliterate() 108 offsets.start = offsets.limit; in handleTransliterate()
|
D | LowercaseTransliterator.java | 65 Position offsets, boolean isIncremental) { in handleTransliterate() argument 70 if(offsets.start >= offsets.limit) { in handleTransliterate() 81 iter.setIndex(offsets.start); in handleTransliterate() 82 iter.setLimit(offsets.limit); in handleTransliterate() 83 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate() 90 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate() 108 offsets.limit += delta; in handleTransliterate() 109 offsets.contextLimit += delta; in handleTransliterate() 112 offsets.start = offsets.limit; in handleTransliterate()
|
/external/icu/icu4c/source/i18n/ |
D | titletrn.cpp | 69 Replaceable& text, UTransPosition& offsets, in handleTransliterate() argument 79 if (offsets.start >= offsets.limit) { in handleTransliterate() 96 for (start = offsets.start - 1; start >= offsets.contextStart; start -= U16_LENGTH(c)) { in handleTransliterate() 114 csc.start = offsets.contextStart; in handleTransliterate() 115 csc.limit = offsets.contextLimit; in handleTransliterate() 121 for(textPos=offsets.start; textPos<offsets.limit;) { in handleTransliterate() 138 offsets.start=csc.cpStart; in handleTransliterate() 157 csc.limit=offsets.contextLimit+=delta; in handleTransliterate() 158 offsets.limit+=delta; in handleTransliterate() 163 offsets.start=textPos; in handleTransliterate()
|
D | uni2name.cpp | 70 void UnicodeNameTransliterator::handleTransliterate(Replaceable& text, UTransPosition& offsets, in handleTransliterate() argument 78 offsets.start = offsets.limit; in handleTransliterate() 85 offsets.start = offsets.limit; in handleTransliterate() 89 int32_t cursor = offsets.start; in handleTransliterate() 90 int32_t limit = offsets.limit; in handleTransliterate() 112 offsets.contextLimit += limit - offsets.limit; in handleTransliterate() 113 offsets.limit = limit; in handleTransliterate() 114 offsets.start = cursor; in handleTransliterate()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
D | SampleAuxiliaryInformationOffsetsBox.java | 51 private List<Long> offsets = new LinkedList<Long>(); field in SampleAuxiliaryInformationOffsetsBox 61 …return 8 + (getVersion() == 0 ? 4 * offsets.size() : 8 * offsets.size()) + ((getFlags() & 1) == 1 … in getContentSize() 72 IsoTypeWriter.writeUInt32(byteBuffer, offsets.size()); in getContent() 73 for (Long offset : offsets) { in getContent() 92 offsets.clear(); in _parseDetails() 96 offsets.add(IsoTypeReader.readUInt32(content)); in _parseDetails() 98 offsets.add(IsoTypeReader.readUInt64(content)); in _parseDetails() 121 return offsets; in getOffsets() 124 public void setOffsets(List<Long> offsets) { in setOffsets() argument 125 this.offsets = offsets; in setOffsets()
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | YUVImage.java | 148 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides, in YUVImage() argument 150 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage() 212 public void setBuf(byte[][] planes, int[] offsets, int width, int strides[], in setBuf() argument 214 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf() 217 private void setBuf(byte[][] planes, int[] offsets, int width, int strides[], in setBuf() argument 224 if (planes.length != nc || (offsets != null && offsets.length != nc) || in setBuf() 228 if (offsets == null) in setBuf() 229 offsets = new int[nc]; in setBuf() 245 if (planes[i] == null || offsets[i] < 0) in setBuf() 247 if (strides[i] < 0 && offsets[i] - planeSize + pw < 0) in setBuf() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | simplepatternformattertest.cpp | 75 int32_t offsets[] = { 0 }; in TestNoPlaceholders() local 79 fmt.formatAndAppend(NULL, 0, appendTo, offsets, 1, status)); in TestNoPlaceholders() 80 assertEquals("formatAndAppend offsets[0]", -1, offsets[0]); in TestNoPlaceholders() 161 int32_t offsets[6]; in TestManyPlaceholders() local 171 offsets, in TestManyPlaceholders() 172 UPRV_LENGTHOF(offsets), in TestManyPlaceholders() 177 verifyOffsets(expectedOffsets, offsets, UPRV_LENGTHOF(expectedOffsets)); in TestManyPlaceholders() 182 offsets[UPRV_LENGTHOF(offsets) - 1] = 289; in TestManyPlaceholders() 188 offsets, in TestManyPlaceholders() 189 UPRV_LENGTHOF(offsets) - 1, in TestManyPlaceholders() [all …]
|