Base Framework
Public Member Functions | Static Public Member Functions | List of all members
YAML::YAMLParser Class Reference

Inherits Parser.

Public Member Functions

 YAMLParser (const uint8 *src, const uint8 *end) noexcept
 
LineColumn getPosition () const noexcept
 
void skipYAMLSpaces () noexcept
 
- Public Member Functions inherited from Parser
 Parser () noexcept
 
 Parser (const uint8 *_src, const uint8 *_end) noexcept
 
 Parser (const String &text) noexcept
 
const uint8 * getCurrent () const noexcept
 
MemorySize getAvailable () const noexcept
 
bool hasMore () const noexcept
 
uint8 peekByte () const
 
char peek () const
 
bool peek (char ch) const
 
void unwind ()
 
void skip ()
 
unsigned int getUCS4Bytes () const noexcept
 
ucs4 peekUCS4 () const
 
ucs4 readUCS4 ()
 
void read (ucs4 ch)
 
void skipUCS4 ()
 
unsigned int readDigit ()
 
unsigned int readDigits (unsigned int count)
 
unsigned int getNumberOfDigits () const noexcept
 
char read ()
 
void read (char ch)
 
void read (const char *text)
 
void skipJSONSpaces ()
 
void skipAny (const char *chars)
 

Static Public Member Functions

static MemorySize getColumn (const uint8 *src, const uint8 *end, unsigned int tabSize=2)
 
- Static Public Member Functions inherited from Parser
static bool doesMatchPattern (const String &pattern, const String &text) noexcept
 

Additional Inherited Members

- Protected Attributes inherited from Parser
const uint8 * src = nullptr
 
const uint8 * end = nullptr
 

Member Function Documentation

◆ getColumn()

static MemorySize YAML::YAMLParser::getColumn ( const uint8 *  src,
const uint8 *  end,
unsigned int  tabSize = 2 
)
inlinestatic

Finds the column.

◆ skipYAMLSpaces()

void YAML::YAMLParser::skipYAMLSpaces ( )
inlinenoexcept

Skips YAML space.