XII Release 0.1.0
Loading...
Searching...
No Matches
xiiTokenParseUtils::TokenMatch Struct Reference

A token to be matched by the xiiTokenParseUtils::Accept overload for arrays of tokens. Can either match a token string or type. If type is xiiTokenType::Unknown, the token string will be matched. More...

#include <TokenParseUtils.h>

Public Member Functions

 TokenMatch (xiiStringView sToken)
 This matches a token string of any type.
 
 TokenMatch (xiiTokenType::Enum type)
 This matches a token type of any string value.
 
 TokenMatch (xiiTokenType::Enum type, xiiStringView sToken)
 For internal use. Use one of the other constructors instead.
 

Public Attributes

xiiTokenType::Enum m_Type = xiiTokenType::Unknown
 
xiiStringView m_sToken
 

Detailed Description

A token to be matched by the xiiTokenParseUtils::Accept overload for arrays of tokens. Can either match a token string or type. If type is xiiTokenType::Unknown, the token string will be matched.


The documentation for this struct was generated from the following file: