Package one.microstream.chars
Class XParsing
java.lang.Object
one.microstream.chars.XParsing
public final class XParsing extends Object
-
Method Summary
Modifier and Type Method Description static int
checkCharacter(char[] input, int i, char c)
static int
checkCharacter(char[] input, int i, char c, String contextHint)
static void
checkIncompleteInput(int i, int iBound)
static void
checkIncompleteInput(int i, int iBound, String contextHint)
static int
checkStartsWith(char[] input, int iStart, int iBound, String subject)
static int
checkStartsWith(char[] input, int iStart, int iBound, String subject, String contextHint)
static String
parseSimpleQuote(char[] input, int iStart, int iBound)
static int
parseSimpleQuote(char[] input, int iStart, int iBound, Consumer<? super String> receiver)
static int
parseToSimpleTerminator(char[] input, int iStart, int iBound, char terminator, Consumer<? super String> receiver)
static int
skipSimpleQuote(char[] input, int iStart, int iBound)
Skips to the position beyond the second occurance of the current character (input[iStart]).static int
skipToSimpleTerminator(char[] input, int iStart, int iBound, char terminator)
static int
skipWhiteSpaces(char[] input, int iStart, int iBound)
static int
skipWhiteSpacesReversed(char[] input, int iStart, int iBound)
static boolean
startsWith(char[] input, int iStart, int iBound, char[] subject)
static boolean
startsWith(char[] input, int iStart, int iBound, String subject)
-
Method Details
-
skipWhiteSpaces
public static final int skipWhiteSpaces(char[] input, int iStart, int iBound) -
skipWhiteSpacesReversed
public static final int skipWhiteSpacesReversed(char[] input, int iStart, int iBound) -
skipSimpleQuote
public static final int skipSimpleQuote(char[] input, int iStart, int iBound)Skips to the position beyond the second occurance of the current character (input[iStart]). This simple logic does NOT support escaping.- Parameters:
input
-iStart
-iBound
-
-
skipToSimpleTerminator
public static final int skipToSimpleTerminator(char[] input, int iStart, int iBound, char terminator) -
parseSimpleQuote
-
parseSimpleQuote
-
parseToSimpleTerminator
-
checkStartsWith
-
checkStartsWith
-
startsWith
-
startsWith
public static final boolean startsWith(char[] input, int iStart, int iBound, char[] subject) -
checkCharacter
public static final int checkCharacter(char[] input, int i, char c) throws ParsingExceptionUnexpectedCharacterInArray -
checkCharacter
public static final int checkCharacter(char[] input, int i, char c, String contextHint) throws ParsingExceptionUnexpectedCharacterInArray -
checkIncompleteInput
public static final void checkIncompleteInput(int i, int iBound) -
checkIncompleteInput
-