/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
/** * Return the first index of any of the characters in "any" in "s", * or -1 if none are found. * * This should be a method on String. */ private static int indexOfAny(String s, String any) { return indexOfAny(s, any, 0); }
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case
if (s == null) return null; if (indexOfAny(s, "+%") == -1) return s; // the common case