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. 
 | 
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. 
 | 
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 © 2016 Eclipse JGit Project. All rights reserved.