-
Notifications
You must be signed in to change notification settings - Fork 0
Utils.IStringParserQuick
Interface for parsers for QuickJSON
public interface IStringParserQuickDerived
↳ StringParserQuick
↳ StringParserQuickTextReader
Text of line in whole
string Line { get; }Current parse position
int Position { get; }Backup one position
void BackUp();Get next character. Space if at EOL.
char GetChar();Is this character at the current position, if so, skip it. Optionally skip space afterwards
bool IsCharMoveOn(char t, bool skipspace=true);
skipspace System.Boolean
Is at End of Line
bool IsEOL();Is this string at the current position, if so, skip it and skip space
bool IsStringMoveOn(string s);Read next number: long, ulong, bigint or double.
QuickJSON.JToken JNextNumber(bool sign);
sign System.Boolean
True if negative. Sign has been removed
JToken
New JToken of number, Long, BigInt or Double. Null if failed
Get the next quoted string into buffer. Quote has already been removed.
int NextQuotedString(char quote, char[] buffer, bool replaceescape=false);
quote System.Char
Quote character to stop on
buffer System.Char[]
Buffer to place string into
replaceescape System.Boolean
True to replace escape sequences \, /, \b, \f, \n, \r, \t, uNNNN
System.Int32
Number of characters in buffe. -1 if it runs out of buffer space
Peek next character. Space if at EOL.
char PeekChar();Skip all white space
void SkipSpace();