From 9cde3f97aa0a37161dea257fbf5707ff8752d9e6 Mon Sep 17 00:00:00 2001
From: Elliotte Rusty Harold Removes control characters, including whitespace, from both
+ * Removes C0 control characters, including ASCII whitespace, from both
* ends of this String, handling Removes control characters, including whitespace, from both
+ * Removes C0 control characters, including ASCII whitespace, from both
* ends of this String, handling Splits the provided text into a array, based on a given separator. The separator is not included in the returned String array. The
- * maximum number of splits to perfom can be controlled. A null
by returning
* an empty String.null
by returning
* null
.null
- * separator will cause parsing to be on whitespace.null
+ * separator causes splitting on whitespace.
This is useful for quickly splitting a String directly into + *
This is useful for quickly splitting a String into
* an array of tokens, instead of an enumeration of tokens (as
* StringTokenizer
does).
null
+ * @return the number of occurrences, 0 if the String is null
* @throws NullPointerException if sub is null
*/
public static int countMatches( @Nullable String str, @Nonnull String sub )
@@ -1715,7 +1715,7 @@ public static int countMatches( @Nullable String str, @Nonnull String sub )
//--------------------------------------------------------------------------
/**
- * Checks if the String contains only unicode letters.
+ *Checks if the String contains only Unicode letters.
* *null
will return false
.
* An empty String will return true
.
Checks if the String contains only unicode letters and + *
Checks if the String contains only Unicode letters and
* space (' '
).
null
will return false
. An
@@ -1795,7 +1795,7 @@ public static boolean isAlphaSpace( String str )
}
/**
- *
Checks if the String contains only unicode letters or digits.
+ *Checks if the String contains only Unicode letters or digits.
* *null
will return false
. An empty
* String will return true
.
Checks if the String contains only unicode letters, digits + *
Checks if the String contains only Unicode letters, digits
* or space (' '
).
null
will return false
. An empty
@@ -1850,7 +1850,7 @@ public static boolean isAlphanumericSpace( String str )
}
/**
- *
Checks if the String contains only unicode digits.
+ *Checks if the String contains only Unicode digits.
* *null
will return false
.
* An empty String will return true
.