Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 25 of 563) sorted by relevance

12345678910>>...23

/external/icu/icu4c/source/common/
Ducnv_u7.c212 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 …]
Ducnvlat1.c37 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 …]
Ducnv_u16.c53 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 …]
/external/v8/test/unittests/interpreter/
Dsource-position-table-unittest.cc21 static int offsets[] = {0, 1, 2, 3, 4, 30, 31, 32, variable
27 for (int i = 0; i < arraysize(offsets); i++) { in TEST_F()
28 builder.AddPosition(offsets[i], offsets[i], true); in TEST_F()
38 for (int i = 0; i < arraysize(offsets); i++) { in TEST_F()
39 builder.AddPosition(offsets[i], offsets[i], true); in TEST_F()
40 builder.AddPosition(offsets[i], offsets[i] + 1, true); in TEST_F()
50 for (int i = 0; i < arraysize(offsets); i++) { in TEST_F()
51 builder.AddPosition(offsets[i], offsets[i], false); in TEST_F()
61 for (int i = 0; i < arraysize(offsets); i++) { in TEST_F()
62 code_offset += offsets[i]; in TEST_F()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF7.java184 …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 …]
DCharsetBOCU1.java387 …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 …]
DCharsetSCSU.java234 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 …]
/external/marisa-trie/tests/
Dtail-test.cc27 marisa::Vector<marisa::UInt32> offsets; in TestBinaryTail() local
28 tail.build(keys, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
34 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
35 ASSERT(offsets[0] == 1); in TestBinaryTail()
36 ASSERT(offsets[1] == tail.size()); in TestBinaryTail()
40 tail.build(keys, &offsets, MARISA_TEXT_TAIL); in TestBinaryTail()
46 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
47 ASSERT(offsets[0] == 1); in TestBinaryTail()
48 ASSERT(offsets[1] == tail.size()); in TestBinaryTail()
50 tail.build(keys, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
[all …]
/external/marisa-trie/v0_1_5/tests/
Dtail-test.cc27 marisa_alpha::Vector<marisa_alpha::UInt32> offsets; in TestBinaryTail() local
28 tail.build(keys, &offsets, MARISA_ALPHA_BINARY_TAIL); in TestBinaryTail()
34 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
35 ASSERT(offsets[0] == 1); in TestBinaryTail()
36 ASSERT(offsets[1] == tail.size()); in TestBinaryTail()
40 tail.build(keys, &offsets, MARISA_ALPHA_TEXT_TAIL); in TestBinaryTail()
46 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
47 ASSERT(offsets[0] == 1); in TestBinaryTail()
48 ASSERT(offsets[1] == tail.size()); in TestBinaryTail()
50 tail.build(keys, &offsets, MARISA_ALPHA_BINARY_TAIL); in TestBinaryTail()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java111 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/
DTimeZoneOffsetLocalTest.java107 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/jmonkeyengine/engine/src/core/com/jme3/animation/
DPose.java49 private Vector3f[] offsets; field in Pose
55 public Pose(String name, int targetMeshIndex, Vector3f[] offsets, int[] indices){ in Pose() argument
58 this.offsets = offsets; in Pose()
75 Vector3f offset = offsets[i]; in apply()
99 if(this.offsets!=null) { in clone()
100 result.offsets = new Vector3f[this.offsets.length]; in clone()
101 for(int i=0;i<this.offsets.length;++i) { in clone()
102 result.offsets[i] = this.offsets[i].clone(); in clone()
115 out.write(offsets, "offsets", null); in write()
123 offsets = (Vector3f[]) in.readSavableArray("offsets", null); in read()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DSimplePatternFormatterTest.java57 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/tests/core/src/com/ibm/icu/dev/test/util/
DSimplePatternFormatterTest.java53 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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DSampleAuxiliaryInformationOffsetsBox.java51 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/icu/icu4c/source/i18n/
Dtitletrn.cpp69 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()
Duni2name.cpp70 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/icu/android_icu4j/src/main/java/android/icu/text/
DTitlecaseTransliterator.java63 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()
DCaseFoldTransliterator.java58 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()
DUppercaseTransliterator.java61 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()
DLowercaseTransliterator.java65 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/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTitlecaseTransliterator.java62 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()
DCaseFoldTransliterator.java57 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()
DLowercaseTransliterator.java64 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()
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DYUVImage.java148 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 …]

12345678910>>...23