Searched defs:offsets (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/util/regex/
H A DMatchResultImpl.java34 * Holds the offsets of the groups in the input text. The first two
38 private int[] offsets; field in class:MatchResultImpl
40 MatchResultImpl(String text, int[] offsets) { argument
42 this.offsets = offsets.clone();
50 return offsets[2 * group + 1];
58 int from = offsets[group * 2];
59 int to = offsets[(group * 2) + 1];
68 return (offsets.length / 2) - 1;
76 return offsets[
[all...]
H A DMatcher.java65 * Holds the offsets for the most recent match.
670 private static native boolean findImpl(long addr, String s, int startIndex, int[] offsets); argument
671 private static native boolean findNextImpl(long addr, String s, int[] offsets); argument
674 private static native boolean lookingAtImpl(long addr, String s, int[] offsets); argument
675 private static native boolean matchesImpl(long addr, String s, int[] offsets); argument
/libcore/luni/src/main/java/java/nio/
H A DIoVec.java36 private final int[] offsets; field in class:IoVec
47 this.offsets = new int[bufferCount];
61 offsets[i] = b.position();
64 offsets[i] = NioUtils.unsafeArrayOffset(b) + b.position();
75 int result = Libcore.os.readv(fd, ioBuffers, offsets, byteCounts);
81 return Libcore.os.writev(fd, ioBuffers, offsets, byteCounts);
/libcore/luni/src/test/java/libcore/java/text/
H A DCollatorTest.java118 private void assertCollationElementIterator(CollationElementIterator it, Integer... offsets) { argument
119 for (int offset : offsets) {
126 private void assertGetCollationElementIteratorString(Locale l, String s, Integer... offsets) { argument
128 assertCollationElementIterator(coll.getCollationElementIterator(s), offsets);
131 private void assertGetCollationElementIteratorCharacterIterator(Locale l, String s, Integer... offsets) { argument
134 assertCollationElementIterator(coll.getCollationElementIterator(it), offsets);
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java152 @Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException { argument
154 return os.readv(fd, buffers, offsets, byteCounts);
200 @Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException { argument
202 return os.writev(fd, buffers, offsets, byteCounts);
H A DForwardingOs.java107 public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException { return os.readv(fd, buffers, offsets, byteCounts); } argument
145 public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException { return os.writev(fd, buffers, offsets, byteCounts); } argument
H A DOs.java100 public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException; argument
138 public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException; argument
H A DPosix.java131 public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException; argument
205 public native int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException; argument
/libcore/luni/src/main/native/
H A Djava_util_regex_Matcher.cpp87 ScopedIntArrayRW offsets(mEnv, javaOffsets);
88 if (offsets.get() == NULL) {
93 offsets[2*i + 0] = mMatcher->start(i, mStatus);
94 offsets[2*i + 1] = mMatcher->end(i, mStatus);
124 static jint Matcher_findImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jint startIndex, jintArray offsets) { argument
128 matcher.updateOffsets(offsets);
133 static jint Matcher_findNextImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jintArray offsets) { argument
140 matcher.updateOffsets(offsets);
155 static jint Matcher_lookingAtImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jintArray offsets) { argument
159 matcher.updateOffsets(offsets);
164 Matcher_matchesImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jintArray offsets) argument
[all...]
H A Dlibcore_io_Posix.cpp168 ScopedIntArrayRO offsets(mEnv, javaOffsets);
169 if (offsets.get() == NULL) {
186 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]);
1046 static jint Posix_readv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCounts) { argument
1048 if (!ioVec.init(buffers, offsets, byteCounts)) {
1358 static jint Posix_writev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCounts) { argument
1360 if (!ioVec.init(buffers, offsets, byteCounts)) {

Completed in 190 milliseconds