public class CharScanner extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
ALPHA_0 |
protected static int |
ALPHA_9 |
protected static int |
CLOSED_BRACKET |
protected static int |
CLOSED_CURLY |
protected static int |
COMMA |
protected static int |
DECIMAL_POINT |
protected static int |
LETTER_BIG_E |
protected static int |
LETTER_E |
protected static int |
MINUS |
protected static int |
PLUS |
Constructor and Description |
---|
CharScanner() |
Modifier and Type | Method and Description |
---|---|
static String |
debugCharDescription(int c) |
static String |
errorDetails(String message,
char[] array,
int index,
int ch) |
static boolean |
hasDecimalChar(char[] chars,
boolean negative) |
static boolean |
isDecimalChar(int currentChar) |
static boolean |
isDecimalDigit(int c) |
protected static boolean |
isDelimiter(int c) |
static boolean |
isDigit(int c) |
static boolean |
isInteger(char[] digitChars) |
static boolean |
isInteger(char[] digitChars,
int offset,
int len) |
static boolean |
isLong(char[] digitChars) |
static boolean |
isLong(char[] digitChars,
int offset,
int len) |
static boolean |
isNumberDigit(int c) |
static BigDecimal |
parseBigDecimal(char[] buffer) |
static double |
parseDouble(char[] buffer,
int from,
int to) |
static float |
parseFloat(char[] buffer,
int from,
int to) |
static int |
parseInt(char[] digitChars) |
static int |
parseIntFromTo(char[] digitChars,
int offset,
int to) |
static int |
parseIntFromToIgnoreDot(char[] digitChars,
int offset,
int to) |
static Number |
parseJsonNumber(char[] buffer) |
static Number |
parseJsonNumber(char[] buffer,
int from,
int to) |
static Number |
parseJsonNumber(char[] buffer,
int from,
int max,
int[] size) |
static long |
parseLong(char[] digitChars) |
static long |
parseLongFromTo(char[] digitChars,
int offset,
int to) |
static long |
parseLongFromToIgnoreDot(char[] digitChars,
int offset,
int to) |
static char[] |
readNumber(char[] array,
int idx,
int len) |
static int |
skipWhiteSpace(char[] array,
int index,
int length) |
protected static final int COMMA
protected static final int CLOSED_CURLY
protected static final int CLOSED_BRACKET
protected static final int LETTER_E
protected static final int LETTER_BIG_E
protected static final int DECIMAL_POINT
protected static final int ALPHA_0
protected static final int ALPHA_9
protected static final int MINUS
protected static final int PLUS
public static boolean isDigit(int c)
public static boolean isDecimalDigit(int c)
public static boolean isDecimalChar(int currentChar)
public static boolean hasDecimalChar(char[] chars, boolean negative)
public static boolean isLong(char[] digitChars)
public static boolean isLong(char[] digitChars, int offset, int len)
public static boolean isInteger(char[] digitChars)
public static boolean isInteger(char[] digitChars, int offset, int len)
public static int parseInt(char[] digitChars)
public static int parseIntFromTo(char[] digitChars, int offset, int to)
public static int parseIntFromToIgnoreDot(char[] digitChars, int offset, int to)
public static long parseLongFromToIgnoreDot(char[] digitChars, int offset, int to)
public static long parseLongFromTo(char[] digitChars, int offset, int to)
public static long parseLong(char[] digitChars)
public static Number parseJsonNumber(char[] buffer)
public static Number parseJsonNumber(char[] buffer, int from, int to)
public static boolean isNumberDigit(int c)
protected static boolean isDelimiter(int c)
public static Number parseJsonNumber(char[] buffer, int from, int max, int[] size)
public static BigDecimal parseBigDecimal(char[] buffer)
public static float parseFloat(char[] buffer, int from, int to)
public static double parseDouble(char[] buffer, int from, int to)
public static int skipWhiteSpace(char[] array, int index, int length)
public static char[] readNumber(char[] array, int idx, int len)
public static String debugCharDescription(int c)