public class RawCharUtil extends Object
Characters are assumed to be 8-bit US-ASCII.
Modifier and Type | Method and Description |
---|---|
static boolean |
isWhitespace(byte c)
Determine if an 8-bit US-ASCII encoded character is represents whitespace
|
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.
|
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.
|
public static boolean isWhitespace(byte c)
c
- the 8-bit US-ASCII encoded characterpublic static int trimTrailingWhitespace(byte[] raw, int start, int end)
raw
- the byte array containing the portion to trim whitespace forstart
- the start of the section of bytesend
- the end of the section of bytespublic static int trimLeadingWhitespace(byte[] raw, int start, int end)
raw
- the byte array containing the portion to trim whitespace forstart
- the start of the section of bytesend
- the end of the section of bytesCopyright © 2019 Eclipse JGit Project. All rights reserved.