-
Notifications
You must be signed in to change notification settings - Fork 0
Utils.StringParserQuickTextReader
Text Reader Parser Quick for JSON system.
public class StringParserQuickTextReader :
QuickJSON.Utils.IStringParserQuickInheritance System.Object 🡒 StringParserQuickTextReader
Implements IStringParserQuick
Constructor
public StringParserQuickTextReader(System.IO.TextReader textreader, int chunksize);
textreader System.IO.TextReader
Textreader to read from
chunksize System.Int32
Chunk size to take each time from textreader. Make sure its big enough to read the longest number
Text of line in whole
public string Line { get; }Implements Line
Current parse position
public int Position { get; }Implements Position
Backup one position
public void BackUp();Implements BackUp()
Get next character. Space if at EOL.
public char GetChar();Implements GetChar()
Is this character at the current position, if so, skip it. Optionally skip space afterwards
public bool IsCharMoveOn(char t, bool skipspace=true);
skipspace System.Boolean
Implements IsCharMoveOn(char, bool)
Is at End of Line
public bool IsEOL();Implements IsEOL()
Is this string at the current position, if so, skip it and skip space
public bool IsStringMoveOn(string s);Implements IsStringMoveOn(string)
Read next number: long, ulong, bigint or double.
public 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
Implements JNextNumber(bool)
Get the next quoted string into buffer. Quote has already been removed.
public 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
Implements NextQuotedString(char, char[], bool)
Peek next character. Space if at EOL.
public char PeekChar();Implements PeekChar()
Skip all white space
public void SkipSpace();Implements SkipSpace()