Home
last modified time | relevance | path

Searched refs:group (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/main/java/java/util/regex/
DMatchResultImpl.java49 public int end(int group) { in end() argument
50 return offsets[2 * group + 1]; in end()
53 public String group() { in group() method in MatchResultImpl
57 public String group(int group) { in group() argument
58 int from = offsets[group * 2]; in group()
59 int to = offsets[(group * 2) + 1]; in group()
75 public int start(int group) { in start() argument
76 return offsets[2 * group]; in start()
DMatchResult.java50 int end(int group); in end() argument
57 String group(); in group() method
68 String group(int group); in group() argument
96 int start(int group); in start() argument
DMatcher.java142 buffer.append(group(c - '0')); in appendEvaluated()
357 public String group(int group) { in group() argument
359 int from = matchOffsets[group * 2]; in group()
360 int to = matchOffsets[(group * 2) + 1]; in group()
375 public String group() { in group() method in Matcher
376 return group(0); in group()
464 public int start(int group) throws IllegalStateException { in start() argument
466 return matchOffsets[group * 2]; in start()
480 public int end(int group) { in end() argument
482 return matchOffsets[(group * 2) + 1]; in end()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DModeTest.java57 assertEquals("dog", m.group(1)); in testCase()
64 assertEquals("cAt", m.group(1)); in testCase()
66 assertEquals("doG", m.group(1)); in testCase()
73 assertEquals("cAt", m.group(1)); in testCase()
75 assertEquals("doG", m.group(1)); in testCase()
119 assertEquals("1", m.group(1)); in testMultiline()
121 assertEquals("2", m.group(1)); in testMultiline()
128 assertEquals("3", m.group(1)); in testMultiline()
130 assertEquals("4", m.group(1)); in testMultiline()
137 assertEquals("1", m.group(1)); in testMultiline()
[all …]
DPattern2Test.java162 assertEquals("p1#q3", m.group()); in testGroups()
163 assertEquals("p1#q3", m.group(0)); in testGroups()
164 assertEquals("p1", m.group(1)); in testGroups()
165 assertEquals("q3", m.group(2)); in testGroups()
176 assertEquals("p2q42", m.group()); in testGroups()
177 assertEquals("p2q42", m.group(0)); in testGroups()
178 assertEquals("p2", m.group(1)); in testGroups()
179 assertEquals("q42", m.group(2)); in testGroups()
191 assertEquals("p63#q888", m.group()); in testGroups()
192 assertEquals("p63#q888", m.group(0)); in testGroups()
[all …]
DMatcher2Test.java109 m.group(); in testErrorConditions()
127 m.group(1); in testErrorConditions()
199 m.group(3); in testErrorConditions2()
217 m.group(-1); in testErrorConditions2()
243 m.group(3); in testErrorConditions2()
261 m.group(-1); in testErrorConditions2()
281 m.group(3); in testErrorConditions2()
299 m.group(-1); in testErrorConditions2()
DPatternTest.java615 mat.group(1); in testQuantComposition()
682 assertEquals("-", m.group(1)); in testTimeZoneIssue()
683 assertEquals("9", m.group(2)); in testTimeZoneIssue()
684 assertEquals(":45", m.group(3)); in testTimeZoneIssue()
685 assertEquals("45", m.group(4)); in testTimeZoneIssue()
895 assertEquals("a\n", mat.group()); in testFindBoundaryCases1()
909 assertEquals("aA", mat.group()); in testFindBoundaryCases2()
923 assertEquals("aA", mat.group()); in testFindBoundaryCases3()
937 assertEquals("A", mat.group()); in testFindBoundaryCases4()
953 assertEquals(res[k], mat.group()); in testFindBoundaryCases5()
[all …]
/libcore/luni/src/main/java/java/lang/
DThread.java135 volatile ThreadGroup group; field in Thread
287 public Thread(ThreadGroup group, Runnable runnable) { in Thread() argument
288 create(group, runnable, null, 0); in Thread()
312 public Thread(ThreadGroup group, Runnable runnable, String threadName) { in Thread() argument
317 create(group, runnable, threadName, 0); in Thread()
338 public Thread(ThreadGroup group, String threadName) { in Thread() argument
343 create(group, null, threadName, 0); in Thread()
372 public Thread(ThreadGroup group, Runnable runnable, String threadName, long stackSize) { in Thread() argument
376 create(group, runnable, threadName, stackSize); in Thread()
386 Thread(ThreadGroup group, String name, int priority, boolean daemon) { in Thread() argument
[all …]
DSecurityManager.java121 ThreadGroup group = thread.getThreadGroup(); in checkAccess() local
122 if ((group != null) && (group.parent == null)) { in checkAccess()
138 public void checkAccess(ThreadGroup group) { in checkAccess() argument
140 if (group == null) { in checkAccess()
143 if (group.parent == null) { in checkAccess()
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
DObjectIdentifier.java58 private Object group; field in ObjectIdentifier
91 this.group = oidGroup; in ObjectIdentifier()
121 return group; in getGroup()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java28 public MyThread(ThreadGroup group, String name) in MyThread() argument
30 super(group, name); in MyThread()
296 ThreadGroup group = new ThreadGroup("Foo"); in test_resume() local
298 Thread thread = launchFiveSecondDummyThread(group); in test_resume()
308 group.resume(); in test_resume()
312 private Thread launchFiveSecondDummyThread(ThreadGroup group) { in launchFiveSecondDummyThread() argument
313 Thread thread = new Thread(group, "Bar") { in launchFiveSecondDummyThread()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java245 … assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start, mat.start(i)); in test_startI()
247 … assertEquals("Start is wrong for group " + i + " :" + mat.group(i), start + 4, mat.start(i)); in test_startI()
277 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), m… in test_endI()
279 …assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + 4 + mat.group(i).length(… in test_endI()
353 assertEquals(testString.substring(i, i + length), mat2.group(1)); in test_findI()
685 assertEquals("group not matched", "abbabb", mat.toMatchResult().group()); in test_toMatchResult()
686 assertEquals("3 group not matched", "abb", mat.toMatchResult().group(3)); in test_toMatchResult()
/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DHexStringParser.java126 hexSegments[0] = matcher.group(1); in getSegmentsFromHexString()
127 hexSegments[1] = matcher.group(2); in getSegmentsFromHexString()
128 hexSegments[2] = matcher.group(3); in getSegmentsFromHexString()
/libcore/luni/src/main/java/java/util/
DScanner.java409 return matcher.group(); in findInLine()
501 result = matcher.group(); in findWithinHorizon()
627 String floatString = matcher.group(); in hasNextBigDecimal()
668 String intString = matcher.group(); in hasNextBigInteger()
722 String intString = matcher.group(); in hasNextByte()
747 String floatString = matcher.group(); in hasNextDouble()
772 String floatString = matcher.group(); in hasNextFloat()
814 String intString = matcher.group(); in hasNextInt()
891 String intString = matcher.group(); in hasNextLong()
932 String intString = matcher.group(); in hasNextShort()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java532 private final ThreadGroup group;
538 group = (s != null)? s.getThreadGroup() :
546 Thread t = new Thread(group, r,
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
DAttributeTypeAndValue.java321 Object group = oid.getGroup(); in appendName() local
323 if (RFC1779_NAMES == group || RFC2253_NAMES == group) { in appendName()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java163 String type = m.group(1); in test_Provider_Properties()
/libcore/luni/src/main/java/org/apache/xpath/compiler/
DCompiler.java168 expr = group(opPos); break; in compile()
566 protected Expression group(int opPos) throws TransformerException in group() method in Compiler
/libcore/luni/src/test/java/tests/api/java/util/
DScannerTest.java629 assertEquals("2", result.group()); in test_match()
630 assertEquals("2", result.group(0)); in test_match()
664 assertEquals("True", result.group()); in test_match()
687 assertEquals("True", result.group()); in test_match()
701 assertEquals("True", result.group()); in test_match()
733 assertEquals("True", result.group()); in test_match()
5561 assertEquals("345", mresult.group()); in test_findWithinHorizon_LPatternI()
5661 assertEquals("1", mresult.group(1)); in test_findWithinHorizon_LPatternI()
5662 assertEquals("2", mresult.group(2)); in test_findWithinHorizon_LPatternI()
5663 assertEquals("red", mresult.group(3)); in test_findWithinHorizon_LPatternI()
[all …]
/libcore/luni/src/main/native/
Dorg_apache_harmony_luni_platform_OSNetworkSystem.cpp364 jobject group = env->GetObjectField(javaGroupRequest, fid); in mcastJoinLeaveGroup() local
365 if (!inetAddressToSocketAddress(env, group, 0, &groupRequest.gr_group)) { in mcastJoinLeaveGroup()
/libcore/luni/src/test/java/tests/xml/
DDomTest.java1416 + attributeMatcher.group() in domToString()