@Test public void shouldMatchInitialApostrophe() { final String value = "'"; int i = StringUtils.patindexOf(value, StringUtils.APOS_NO_BSESC); assertEquals("initial apostrophe", 0, i); }
public static int patindexOf(String value, Pattern pattern) { Matcher m = pattern.matcher(value); if (!m.find()) { return -1; } return m.start(); }
StringUtils { public static int patindexOf(String value, Pattern pattern) { Matcher m = pattern.matcher(value); if (!m.find()) { return -1; } return m.start(); } }
StringUtils { public static int patindexOf(String value, Pattern pattern) { Matcher m = pattern.matcher(value); if (!m.find()) { return -1; } return m.start(); } private  StringUtils(); }
StringUtils { public static int patindexOf(String value, Pattern pattern) { Matcher m = pattern.matcher(value); if (!m.find()) { return -1; } return m.start(); } private  StringUtils(); static boolean isOnlyWhitespace(String str); static boolean isPossiblyJavaClass(String s); static String getReadableTime(long time_ms); static int nthIndexOf(String str, String substr, int n); static boolean startsWithFnameChars(String value); static boolean startsWithURIChars(String value); static int countURIEndingPushback(String value); static boolean isAlphanumeric(String str); static int patindexOf(String value, Pattern pattern); static boolean startsWithFpathChar(String value); static int countPushback(String capture, Pattern pat); static int whitespaceOrControlLength(String str, int off, boolean shouldMatch); }
StringUtils { public static int patindexOf(String value, Pattern pattern) { Matcher m = pattern.matcher(value); if (!m.find()) { return -1; } return m.start(); } private  StringUtils(); static boolean isOnlyWhitespace(String str); static boolean isPossiblyJavaClass(String s); static String getReadableTime(long time_ms); static int nthIndexOf(String str, String substr, int n); static boolean startsWithFnameChars(String value); static boolean startsWithURIChars(String value); static int countURIEndingPushback(String value); static boolean isAlphanumeric(String str); static int patindexOf(String value, Pattern pattern); static boolean startsWithFpathChar(String value); static int countPushback(String capture, Pattern pat); static int whitespaceOrControlLength(String str, int off, boolean shouldMatch); static final Pattern STANDARD_EOL; static final Pattern APOS_NO_BSESC; static final Pattern END_C_COMMENT; }