Characters are assumed to be 8-bit US-ASCII.
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if c represents a whitespace character in 8-bit US-ASCIIthe 8-bit US-ASCII encoded character c)Determine if an 8-bit US-ASCII encoded character is represents whitespace |
| public static int | Returns: the new start pointthe byte array containing the portion to trim whitespace for raw, int the start of the section of bytes start, int the end of the section of bytes end)Returns the new start point for the byte array passed in after trimming any leading whitespace characters, as determined by the isWhitespace() function. |
| public static int | Returns: the new end pointthe byte array containing the portion to trim whitespace for raw, int the start of the section of bytes start, int the end of the section of bytes end)Returns the new end point for the byte array passed in after trimming any trailing whitespace characters, as determined by the isWhitespace() function. |
| WHITESPACE | back to summary |
|---|---|
| private static final boolean[] WHITESPACE | |
| RawCharUtil | back to summary |
|---|---|
| private RawCharUtil() | |
| isWhitespace | back to summary |
|---|---|
| public static boolean isWhitespace(byte c) Determine if an 8-bit US-ASCII encoded character is represents whitespace
| |
| trimLeadingWhitespace | back to summary |
|---|---|
| public static int trimLeadingWhitespace(byte[] raw, int start, int end) Returns the new start point for the byte array passed in after trimming any leading whitespace characters, as determined by the isWhitespace() function. start and end are assumed to be within the bounds of raw.
| |
| trimTrailingWhitespace | back to summary |
|---|---|
| public static int trimTrailingWhitespace(byte[] raw, int start, int end) Returns the new end point for the byte array passed in after trimming any trailing whitespace characters, as determined by the isWhitespace() function. start and end are assumed to be within the bounds of raw.
| |