Home
last modified time | relevance | path

Searched defs:pattern (Results 1 – 25 of 49) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DReplaceTest.java29 String target, pattern, repl; in testSimpleReplace() local
43 String target, pattern, repl, s; in testCaptureReplace() local
76 String target, pattern, repl, s; in testEscapeReplace() local
DMatcherTest.java104 String pattern = "a*b"; in testReplaceAll() local
139 String pattern = "dog"; in testReplaceFirst() local
384 String pattern = "a*b"; in testEnhancedFind() local
565 Pattern pattern = Pattern.compile("\\w+"); in testMatchesRegionChanged() local
612 Pattern pattern = Pattern.compile("(?s).*"); in testFindRegionChanged() local
627 Pattern pattern = Pattern.compile("c"); in testFindRegionChanged2() local
638 Pattern pattern = Pattern.compile("(?:\\d+)(?:pt)"); in testPatternMatcher() local
657 Pattern pattern = Pattern.compile(regexp); in testGeneralPunctuationCategory() local
699 Pattern pattern = Pattern.compile(regex); in hitEndTest() local
DPattern2Test.java944 Pattern pattern = Pattern in testCompile1() local
953 Pattern pattern = Pattern.compile(findString, 0); in testCompile2() local
1042 Pattern pattern = Pattern.compile(findString, 0); in testCompile4() local
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DReplaceTest.java26 String target, pattern, repl; in testSimpleReplace() local
40 String target, pattern, repl, s; in testCaptureReplace() local
71 String target, pattern, repl, s; in testEscapeReplace() local
/libcore/luni/src/main/java/java/util/regex/
DPatternSyntaxException.java44 private String pattern; field in PatternSyntaxException
66 public PatternSyntaxException(String description, String pattern, int index) { in PatternSyntaxException()
DPattern.java285 private final String pattern; field in Pattern
342 public String pattern() { in pattern() method in Pattern
380 public static Pattern compile(String pattern) { in compile()
384 private Pattern(String pattern, int flags) throws PatternSyntaxException { in Pattern()
DMatcher.java28 private Pattern pattern; field in Matcher
88 Matcher(Pattern pattern, CharSequence input) { in Matcher()
226 public Matcher usePattern(Pattern pattern) { in usePattern()
327 public Pattern pattern() { in pattern() method in Matcher
/libcore/support/src/test/java/tests/support/
DSupport_MessageFormat.java47 …String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} a… in t_format_with_FieldPosition() local
74 …String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} a… in t_formatToCharacterIterator() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_MessageFormat.java48 …String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} a… in t_format_with_FieldPosition() local
74 …String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} a… in t_formatToCharacterIterator() local
DMessageFormatTest.java97 String pattern = "getLocale test {0,number,#,####}"; in test_getLocale() local
187 …String pattern = "A {3, number, currency} B {2, time} C {0, number, percent} D {4} E {1,choice,0#… in test_parseLjava_lang_String() local
259 …String pattern = "Date: {0,date} Currency: {1, number, currency} Integer: {2, number, integer}"; in test_formatLjava_lang_StringLjava_lang_Object() local
597 …String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s}."; in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() local
884 String pattern = "[{0}]"; in test_toPattern() local
897 …String pattern = "A {3, number, currency} B {2, time} C {0, number, percent} D {4} E {1,choice,0#… in setUp() local
DSimpleDateFormatTest.java136 String pattern = "GyMdkHmsSEDFwWahKzZLc"; in test_applyLocalizedPatternLjava_lang_String() local
399 private void assertFormat(String pattern, Calendar cal, String expected, int field) { in assertFormat()
713 private void assertParse(String pattern, String input, Date expected, int start, int end) { in assertParse()
769 String pattern = "yyyy mm dd"; in test_toPattern() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java1164 final int pattern = 1; in test_format_LString$LObject_GeneralConversionB() local
1228 final int pattern = 1; in test_format_LString$LObject_GeneralConversionS() local
1435 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_CharacterConversion() local
1553 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_ByteShortIntegerLongConversionD() local
1623 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_ByteShortIntegerLongConversionO() local
1693 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_ByteShortIntegerLongConversionX() local
2012 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() local
2474 final int pattern = 1; in test_formatLjava_lang_String$LBigInteger() local
2910 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() local
3097 final int pattern = 1; in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionG() local
[all …]
/libcore/luni/src/main/java/java/util/logging/
DFileHandler.java121 private String pattern; field in FileHandler
382 public FileHandler(String pattern) throws IOException { in FileHandler()
408 public FileHandler(String pattern, boolean append) throws IOException { in FileHandler()
439 public FileHandler(String pattern, int limit, int count) throws IOException { in FileHandler()
475 public FileHandler(String pattern, int limit, int count, boolean append) throws IOException { in FileHandler()
DFormatter.java64 String pattern = r.getMessage(); in formatMessage() local
/libcore/luni/src/main/java/java/text/
DDecimalFormat.java534 public DecimalFormat(String pattern) { in DecimalFormat()
549 public DecimalFormat(String pattern, DecimalFormatSymbols value) { in DecimalFormat()
555 DecimalFormat(String pattern, Locale locale) { in DecimalFormat()
560 private void initNative(String pattern) { in initNative()
581 public void applyLocalizedPattern(String pattern) { in applyLocalizedPattern()
595 public void applyPattern(String pattern) { in applyPattern()
/libcore/luni/src/main/java/java/sql/
DBlob.java97 public long position(Blob pattern, long start) throws SQLException; in position()
115 public long position(byte[] pattern, long start) throws SQLException; in position()
/libcore/luni/src/test/resources/bundles/java/util/logging/
Dres.properties11 pattern=US_pattern {0, number} key
Dres_en_US.properties11 pattern=US_pattern {0, number} key
Dres_zh_CN.properties11 pattern=ZH_CN_pattern {0, number} key
Dres2.properties11 pattern=pattern {0, number}2 key
Dres3.properties11 pattern=pattern {0, number}3 key
/libcore/luni/src/main/java/java/util/
DScanner.java317 public String findInLine(Pattern pattern) { in findInLine()
409 public String findInLine(String pattern) { in findInLine()
445 public String findWithinHorizon(Pattern pattern, int horizon) { in findWithinHorizon()
512 public String findWithinHorizon(String pattern, int horizon) { in findWithinHorizon()
541 public boolean hasNext(Pattern pattern) { in hasNext()
577 public boolean hasNext(String pattern) { in hasNext()
960 public String next(Pattern pattern) { in next()
997 public String next(String pattern) { in next()
1530 public Scanner skip(Pattern pattern) { in skip()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldFormatterTest.java64 String pattern = "pattern without 0 {1, number}"; in testFormatMessage() local
/libcore/luni/src/test/java/libcore/java/util/
DFormatterTest.java165 private static void checkFormat(String expected, String pattern, int hour) { in checkFormat()
/libcore/benchmarks/src/benchmarks/regression/
DSchemePrefixBenchmark.java58 private final Pattern pattern = Pattern.compile("^([a-zA-Z][a-zA-Z0-9+\\-.]*):"); in REGEX() local

12