/** * 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); }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 0; }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 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); }
for (start = 0; (i = indexOfAny(addr, ",:", start)) >= 0; start = i+1) { if (addr.charAt(start) != '@')
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 0; }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 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); }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 0; }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 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); }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 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); }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 0; }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 0; }
/** * Is this a "simple" address? Simple addresses don't contain quotes * or any RFC822 special characters other than '@' and '.'. */ private boolean isSimple() { return address == null || indexOfAny(address, specialsNoDotNoAt) < 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); }
for (start = 0; (i = indexOfAny(addr, ",:", start)) >= 0; start = i+1) { if (addr.charAt(start) != '@')