cgv
Loading...
Searching...
No Matches
cgv::utils::line Struct Reference

a line in a text is simply represented as a token More...

#include <advanced_scan.h>

Inheritance diagram for cgv::utils::line:
cgv::utils::token

Public Member Functions

 line (const char *_b=0, const char *_e=0)
 construct from range
Public Member Functions inherited from cgv::utils::token
 token ()
 construct with both pointers set to 0
 token (const char *_str)
 construct from c-string
 token (const char *_b, const char *_e)
 construct from character range
 token (const std::string &s)
 construct from string
size_t get_length () const
 return the length of the token in number of characters
size_t size () const
 return the length of the token in number of characters
bool empty () const
 return whether the token is empty
void skip (const std::string &skip_chars)
 set begin by skipping all instances of the given character set
void reverse_skip (const std::string &skip_chars)
 set end by skipping all instances of the given character set
char operator[] (unsigned int i) const
 return the i-th character of the token
bool operator== (const char *s) const
 compare to const char*
bool operator== (const std::string &s) const
 compare to string
bool operator!= (const char *s) const
 compare to const char*
bool operator!= (const std::string &s) const
 compare to string

Additional Inherited Members

Public Attributes inherited from cgv::utils::token
const char * begin
 pointers that define the range of characters
const char * end

Detailed Description

a line in a text is simply represented as a token

Definition at line 18 of file advanced_scan.h.

Constructor & Destructor Documentation

◆ line()

cgv::utils::line::line ( const char * _b = 0,
const char * _e = 0 )
inline

construct from range

Definition at line 21 of file advanced_scan.h.

References cgv::utils::token::token().


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