@Test public void uriShouldNotCountAnyPushback() { String uri = "http: int n = StringUtils.countURIEndingPushback(uri); assertEquals(uri + " pushback", 0, n); }
public static int countURIEndingPushback(String value) { int n = 0; for (int i = value.length() - 1; i >= 0; --i) { char c = value.charAt(i); if (c == '.') { ++n; } else { break; } } return n; }
StringUtils { public static int countURIEndingPushback(String value) { int n = 0; for (int i = value.length() - 1; i >= 0; --i) { char c = value.charAt(i); if (c == '.') { ++n; } else { break; } } return n; } }
StringUtils { public static int countURIEndingPushback(String value) { int n = 0; for (int i = value.length() - 1; i >= 0; --i) { char c = value.charAt(i); if (c == '.') { ++n; } else { break; } } return n; } private  StringUtils(); }
StringUtils { public static int countURIEndingPushback(String value) { int n = 0; for (int i = value.length() - 1; i >= 0; --i) { char c = value.charAt(i); if (c == '.') { ++n; } else { break; } } return n; } 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 countURIEndingPushback(String value) { int n = 0; for (int i = value.length() - 1; i >= 0; --i) { char c = value.charAt(i); if (c == '.') { ++n; } else { break; } } return n; } 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; }