Home
last modified time | relevance | path

Searched refs:sourceOffset (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/java/src/main/java/com/google/protobuf/
DByteString.java479 public void copyTo(byte[] target, int sourceOffset, int targetOffset, in copyTo() argument
481 if (sourceOffset < 0) { in copyTo()
482 throw new IndexOutOfBoundsException("Source offset < 0: " + sourceOffset); in copyTo()
490 if (sourceOffset + numberToCopy > size()) { in copyTo()
492 "Source end offset < 0: " + (sourceOffset + numberToCopy)); in copyTo()
499 copyToInternal(target, sourceOffset, targetOffset, numberToCopy); in copyTo()
509 protected abstract void copyToInternal(byte[] target, int sourceOffset, in copyToInternal() argument
556 void writeTo(OutputStream out, int sourceOffset, int numberToWrite) in writeTo() argument
558 if (sourceOffset < 0) { in writeTo()
559 throw new IndexOutOfBoundsException("Source offset < 0: " + sourceOffset); in writeTo()
[all …]
DRopeByteString.java358 protected void copyToInternal(byte[] target, int sourceOffset, in copyToInternal() argument
360 if (sourceOffset + numberToCopy <= leftLength) { in copyToInternal()
361 left.copyToInternal(target, sourceOffset, targetOffset, numberToCopy); in copyToInternal()
362 } else if (sourceOffset >= leftLength) { in copyToInternal()
363 right.copyToInternal(target, sourceOffset - leftLength, targetOffset, in copyToInternal()
366 int leftLength = this.leftLength - sourceOffset; in copyToInternal()
367 left.copyToInternal(target, sourceOffset, targetOffset, leftLength); in copyToInternal()
405 void writeToInternal(OutputStream out, int sourceOffset, in writeToInternal() argument
407 if (sourceOffset + numberToWrite <= leftLength) { in writeToInternal()
408 left.writeToInternal(out, sourceOffset, numberToWrite); in writeToInternal()
[all …]
DLiteralByteString.java113 protected void copyToInternal(byte[] target, int sourceOffset, in copyToInternal() argument
117 System.arraycopy(bytes, sourceOffset, target, targetOffset, numberToCopy); in copyToInternal()
146 void writeToInternal(OutputStream outputStream, int sourceOffset, in writeToInternal() argument
148 outputStream.write(bytes, getOffsetIntoBytes() + sourceOffset, in writeToInternal()
DBoundedByteString.java119 protected void copyToInternal(byte[] target, int sourceOffset, in copyToInternal() argument
121 System.arraycopy(bytes, getOffsetIntoBytes() + sourceOffset, target, in copyToInternal()
/external/messageformat/java/com/ibm/icu/simple/
DMessageFormat.java1195 int sourceOffset = pos.getIndex(); in parse() local
1204 if (len == 0 || msgString.regionMatches(prevIndex, source, sourceOffset, len)) { in parse()
1205 sourceOffset += len; in parse()
1208 pos.setErrorIndex(sourceOffset); in parse()
1213 pos.setIndex(sourceOffset); in parse()
1248 tempStatus.setIndex(sourceOffset); in parse()
1250 if (tempStatus.getIndex() == sourceOffset) { in parse()
1251 pos.setErrorIndex(sourceOffset); in parse()
1255 sourceOffset = tempStatus.getIndex(); in parse()
1266 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java1239 int sourceOffset = pos.getIndex(); in parse() local
1248 if (len == 0 || msgString.regionMatches(prevIndex, source, sourceOffset, len)) { in parse()
1249 sourceOffset += len; in parse()
1252 pos.setErrorIndex(sourceOffset); in parse()
1257 pos.setIndex(sourceOffset); in parse()
1292 tempStatus.setIndex(sourceOffset); in parse()
1294 if (tempStatus.getIndex() == sourceOffset) { in parse()
1295 pos.setErrorIndex(sourceOffset); in parse()
1299 sourceOffset = tempStatus.getIndex(); in parse()
1310 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetASCII.java60 int sourceOffset = source.arrayOffset(); in decodeLoop() local
61 int sourceIndex = oldSource + sourceOffset; in decodeLoop()
216 int sourceOffset = source.arrayOffset(); in encodeLoop() local
217 int sourceIndex = oldSource + sourceOffset; in encodeLoop()
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp1381 int32_t sourceOffset = pos.getIndex(); in parse() local
1391 if (len == 0 || (0 == msgString.compare(prevIndex, len, source, sourceOffset, len))) { in parse()
1392 sourceOffset += len; in parse()
1395 pos.setErrorIndex(sourceOffset); in parse()
1400 pos.setIndex(sourceOffset); in parse()
1422 tempStatus.setIndex(sourceOffset); in parse()
1424 if (tempStatus.getIndex() == sourceOffset) { in parse()
1425 pos.setErrorIndex(sourceOffset); in parse()
1428 sourceOffset = tempStatus.getIndex(); in parse()
1443 next = source.indexOf(stringAfterArgument, sourceOffset); in parse()
[all …]
Dchoicfmt.cpp541 const UnicodeString &source, int32_t sourceOffset) { in matchStringUntilLimitPart() argument
550 … if (length != 0 && 0 != source.compare(sourceOffset, length, msgString, prevIndex, length)) { in matchStringUntilLimitPart()
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DByteStringMicro.java138 public void copyTo(final byte[] target, final int sourceOffset, in copyTo() argument
141 System.arraycopy(bytes, sourceOffset, target, targetOffset, size); in copyTo()
/external/icu/icu4c/source/common/
Ducnv_ct.c468 int32_t sourceOffset = 0; in UConverter_toUnicode_CompoundText_OFFSETS() local
516sourceOffset = uprv_strlen((char*)escSeqCompoundText[currentState]) - args->converter->toULength; in UConverter_toUnicode_CompoundText_OFFSETS()
518 mySource += sourceOffset; in UConverter_toUnicode_CompoundText_OFFSETS()
536 sourceOffset = findNextEsc(mySource, mySourceLimit); in UConverter_toUnicode_CompoundText_OFFSETS()
538 tmpSourceLimit = mySource + sourceOffset; in UConverter_toUnicode_CompoundText_OFFSETS()
/external/protobuf/java/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java132 int sourceOffset = 213; in testCopyTo_ByteArrayOffsetLength() local
133 stringUnderTest.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
136 stillEqual = referenceBytes[i + sourceOffset] == destination[i + destinationOffset]; in testCopyTo_ByteArrayOffsetLength()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h523 const UnicodeString &source, int32_t sourceOffset);