Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternSyntaxExceptionTest.java22 import java.util.regex.PatternSyntaxException;
31 PatternSyntaxException e = new PatternSyntaxException("Foo", "Bar", 0); in testPatternSyntaxException()
43 e = new PatternSyntaxException(null, "Bar", 0); in testPatternSyntaxException()
55 e = new PatternSyntaxException("Foo", null, 0); in testPatternSyntaxException()
66 e = new PatternSyntaxException(null, null, 0); in testPatternSyntaxException()
77 e = new PatternSyntaxException("Foo", "Bar", -1); in testPatternSyntaxException()
85 e = new PatternSyntaxException("Foo", null, 0); in testPatternSyntaxException()
97 } catch (PatternSyntaxException e) { in testCase()
108 } catch (PatternSyntaxException e) { in testCase2()
116 ObjectStreamClass objectStreamClass = ObjectStreamClass.lookup(PatternSyntaxException.class); in test_objectStreamField()
[all …]
DPattern2Test.java21 import java.util.regex.PatternSyntaxException;
31 public void testUnicodeCategories() throws PatternSyntaxException { in testUnicodeCategories()
131 public void testCapturingGroups() throws PatternSyntaxException { in testCapturingGroups()
179 } catch (PatternSyntaxException pse) { in testCapturingGroups()
252 public void testAnchors() throws PatternSyntaxException { in testAnchors()
DPatternTest.java23 import java.util.regex.PatternSyntaxException;
292 } catch (PatternSyntaxException pse) { in testCompile_WrongPatternsFail()
548 } catch (PatternSyntaxException e) { in testCompileStringInt()
556 } catch (PatternSyntaxException e) { in testCompileStringInt()
564 } catch (PatternSyntaxException e) { in testCompileStringInt()
573 } catch (PatternSyntaxException e) { in testCompileStringInt()
601 } catch (PatternSyntaxException pse) { in testQuantCompileNeg()
666 } catch (PatternSyntaxException pse) { in testMatchesException()
726 } catch (PatternSyntaxException pse) { in testRangesSpecialCases()
779 } catch (PatternSyntaxException pse) { in testOrphanQuantifiers()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DGlobs.java28 import java.util.regex.PatternSyntaxException;
68 throw new PatternSyntaxException("No character to escape", in toRegexPattern()
115 throw new PatternSyntaxException("Explicit 'name separator' in class", in toRegexPattern()
128 throw new PatternSyntaxException("Invalid range", in toRegexPattern()
135 throw new PatternSyntaxException("Invalid range", in toRegexPattern()
146 throw new PatternSyntaxException("Missing ']", globPattern, i - 1); in toRegexPattern()
152 throw new PatternSyntaxException("Cannot nest groups", in toRegexPattern()
204 throw new PatternSyntaxException("Missing '}", globPattern, i - 1); in toRegexPattern()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java21 import java.util.regex.PatternSyntaxException;
30 public void testSimpleMatch() throws PatternSyntaxException { in testSimpleMatch()
100 } catch (PatternSyntaxException e) { in testCursors()
106 public void testGroups() throws PatternSyntaxException { in testGroups()
159 public void testReplace() throws PatternSyntaxException { in testReplace()
206 public void testEscapes() throws PatternSyntaxException { in testEscapes()
256 } catch (PatternSyntaxException e) { in testEscapes()
262 } catch (PatternSyntaxException e) { in testEscapes()
268 } catch (PatternSyntaxException e) { in testEscapes()
274 } catch (PatternSyntaxException e) { in testEscapes()
[all …]
DModeTest.java21 import java.util.regex.PatternSyntaxException;
31 public void testCase() throws PatternSyntaxException { in testCase()
60 public void testMultiline() throws PatternSyntaxException { in testMultiline()
DMatcher2Test.java21 import java.util.regex.PatternSyntaxException;
36 public void testErrorConditions() throws PatternSyntaxException { in testErrorConditions()
87 public void testErrorConditions2() throws PatternSyntaxException { in testErrorConditions2()
DReplaceTest.java21 import java.util.regex.PatternSyntaxException;
28 public void testSimpleReplace() throws PatternSyntaxException { in testSimpleReplace()
DSplitTest.java22 import java.util.regex.PatternSyntaxException;
87 public void testSplit1() throws PatternSyntaxException { in testSplit1()
/libcore/ojluni/src/main/java/java/util/regex/
DPatternSyntaxException.java35 public class PatternSyntaxException class
58 public PatternSyntaxException(String desc, String regex, int index) { in PatternSyntaxException() method in PatternSyntaxException
DPattern.java3520 private void compile() throws PatternSyntaxException { in compile()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java23 import java.util.regex.PatternSyntaxException;
187 } catch(PatternSyntaxException pse) { in test_replaceAll()
210 } catch(PatternSyntaxException pse) { in test_replaceFirst()
231 } catch(PatternSyntaxException pse) { in test_splitLString()
260 } catch(PatternSyntaxException pse) { in test_splitLStringLint()
/libcore/ojluni/src/test/java/lang/String/
DSplit.java192 } catch (PatternSyntaxException pse) {
196 } catch (PatternSyntaxException pse0) {
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java23 import java.util.regex.PatternSyntaxException;
689 } catch(PatternSyntaxException expected) {} in testNamedGroupCapture()
704 } catch(PatternSyntaxException expected) {} in testNamedGroupBackreference()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java47 import java.util.regex.PatternSyntaxException;
347 } catch (PatternSyntaxException expected) { in test_newDirectoryStream$Path$String_Exception()
/libcore/ojluni/src/test/java/util/regex/
DRegExTest.java68 import java.util.regex.PatternSyntaxException;
180 assertThrows(PatternSyntaxException.class, () -> in checkExpectedFail()
1781 } catch (PatternSyntaxException e) { in longPatternTest()
1796 } catch (PatternSyntaxException e) { in longPatternTest()
3400 } catch (PatternSyntaxException e) { in processFile()
3981 assertThrows(PatternSyntaxException.class, () -> Pattern.compile(p1)); in unicodeCharacterNameTest()
3987 assertThrows(PatternSyntaxException.class, () -> Pattern.compile(p2)); in unicodeCharacterNameTest()
4001 assertThrows(PatternSyntaxException.class, () -> Pattern.compile(p)); in unicodeCharacterNameTest()
4006 assertThrows(PatternSyntaxException.class, () -> Pattern.compile(p)); in unicodeCharacterNameTest()
4420 var e = expectThrows(PatternSyntaxException.class, () -> Pattern.compile(pat)); in invalidGroupName()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java33 import java.util.regex.PatternSyntaxException;
/libcore/ojluni/src/main/java/java/lang/
DString.java49 import java.util.regex.PatternSyntaxException;
/libcore/
Dopenjdk_java_files.bp1243 "ojluni/src/main/java/java/util/regex/PatternSyntaxException.java",
DEXPECTED_UPSTREAM1208 …va/java/util/regex/PatternSyntaxException.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/ja…
/libcore/api/
Dcurrent.txt18153 public class PatternSyntaxException extends java.lang.IllegalArgumentException {
18154 ctor public PatternSyntaxException(String, String, int);