|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.util.RawCharUtil
public class RawCharUtil
Utility class for character functions on raw bytes
Characters are assumed to be 8-bit US-ASCII.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isWhitespace(byte c)
c - the 8-bit US-ASCII encoded character
public 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 bytes
public 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 bytes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||