april  1.0.0
...
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
april::AaToken Struct Reference

a token descriptor (string is not contained inside) More...

#include <apriltokenizer.h>

Public Types

enum  Flags {
  HasSpaces = 0x0001, HasTabs = 0x0002, HasNewLine = 0x0004, HasLineFeed = HasNewLine,
  HasCR = 0x0008, HasWhites = HasSpaces | HasTabs | HasNewLine | HasCR, HasDigits = 0x0010, HasLetters = 0x0020,
  OnlyHex = 0x0040, HasComma = 0x0080, HasDot = 0x0100, WasQuoted = 0x0200,
  HasLeadingWhites = 0x0400, HasTrailingWhites = 0x0800, HasMiddleWhites = 0x1000, IsAllWhites = 0x2000 | HasLeadingWhites | HasMiddleWhites | HasTrailingWhites,
  HasLowCodes = 0x4000, UpperCaseLetters = 0x8000
}
 properties of a token More...

Public Member Functions

void init (void)
 initialise the structure to ground values
bool isAllWhite (void) const
bool leadingWhite (void) const
bool trailingWhite (void) const
bool middleWhite (void) const
bool hasWhiteSpaces (void) const
bool hasDigits (void) const
bool hasLetters (void) const
bool hasComma (void) const
bool hasDot (void) const
bool hasLowCodes (void) const
bool hasUpperCaseLetters (void) const
bool hasLowerCaseLetters (void) const
bool isInteger (void) const
bool isHexInteger (void) const
bool wasQuoted (void) const

Public Attributes

int i_start
 the offset from the start of the string to the start of the token
int i_end
 the offset from the start of the string to the end of the token
int flags
 a combination of flags from Flags enum

Detailed Description

a token descriptor (string is not contained inside)

Member Enumeration Documentation

properties of a token

Enumerator:
OnlyHex 

set for [A-Fa-f] letters and [0-9] digits

HasLowCodes 

characters lower than space excluding previous

Member Function Documentation

bool april::AaToken::hasComma ( void  ) const
inline

querry the flags

bool april::AaToken::hasDigits ( void  ) const
inline

querry the flags

bool april::AaToken::hasDot ( void  ) const
inline

querry the flags

bool april::AaToken::hasLetters ( void  ) const
inline

querry the flags

bool april::AaToken::hasLowCodes ( void  ) const
inline

querry the flags

bool april::AaToken::hasLowerCaseLetters ( void  ) const
inline

querry the flags

bool april::AaToken::hasUpperCaseLetters ( void  ) const
inline

querry the flags

bool april::AaToken::hasWhiteSpaces ( void  ) const
inline

querry the flags

bool april::AaToken::isAllWhite ( void  ) const
inline

querry the flags

bool april::AaToken::isHexInteger ( void  ) const
inline

querry the flags

bool april::AaToken::isInteger ( void  ) const
inline

querry the flags

bool april::AaToken::leadingWhite ( void  ) const
inline

querry the flags

bool april::AaToken::middleWhite ( void  ) const
inline

querry the flags

bool april::AaToken::trailingWhite ( void  ) const
inline

querry the flags

bool april::AaToken::wasQuoted ( void  ) const
inline

querry the flags


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