Package com.android.utils
Class CharSequences
java.lang.Object
com.android.utils.CharSequences
public class CharSequences
extends java.lang.Object
A number of utility methods around
CharSequence handling, which
adds methods that are available on Strings (such as indexOf,
startsWith and regionMatches and provides equivalent methods
for character sequences.
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
-
Constructor Summary
Constructors Constructor Description CharSequences() -
Method Summary
Modifier and Type Method Description static intindexOfIgnoreCase(java.lang.CharSequence where, java.lang.CharSequence what, int fromIndex)Similar toString.indexOf(int, int)but with case insensitive comparison.static chartoLowerCase(char c)Converts a character to lower case.static chartoUpperCase(char c)Converts a character to upper case.
-
Constructor Details
-
CharSequences
public CharSequences()
-
-
Method Details
-
indexOfIgnoreCase
public static int indexOfIgnoreCase(java.lang.CharSequence where, java.lang.CharSequence what, int fromIndex)Similar toString.indexOf(int, int)but with case insensitive comparison. -
toUpperCase
public static char toUpperCase(char c)Converts a character to upper case. A slightly optimized version ofCharacter.toUpperCase(char). -
toLowerCase
public static char toLowerCase(char c)Converts a character to lower case. A slightly optimized version ofCharacter.toLowerCase(char).
-