Photon 1.0.0
Loading...
Searching...
No Matches
litehtml::css_token Struct Reference

#include <css_tokenizer.h>

Classes

struct  number
 

Public Member Functions

 css_token (css_token_type type=css_token_type(), float number=0, css_number_type number_type=css_number_integer, string str="")
 
 css_token (css_token_type type, const string &str)
 
 css_token (const css_token &token)
 
css_tokenoperator= (const css_token &token)
 
 ~css_token ()
 
bool is_component_value () const
 
string ident () const
 
string get_repr (bool insert_spaces=false) const
 

Public Attributes

union { 
 
   css_token_type   type 
 
   int   ch 
 
};  
 
union { 
 
   string   str 
 
   string   name 
 
   string   unit 
 
};  
 
union { 
 
   css_hash_type   hash_type 
 
   number   n 
 
   vector< css_token >   value 
 
};  
 
string repr
 

Constructor & Destructor Documentation

◆ css_token() [1/3]

litehtml::css_token::css_token ( css_token_type  type = css_token_type(),
float  number = 0,
css_number_type  number_type = css_number_integer,
string  str = "" 
)
inline

◆ css_token() [2/3]

litehtml::css_token::css_token ( css_token_type  type,
const string &  str 
)
inline

◆ css_token() [3/3]

litehtml::css_token::css_token ( const css_token token)
inline

◆ ~css_token()

litehtml::css_token::~css_token ( )
inline

Member Function Documentation

◆ get_repr()

string litehtml::css_token::get_repr ( bool  insert_spaces = false) const

◆ ident()

string litehtml::css_token::ident ( ) const

◆ is_component_value()

bool litehtml::css_token::is_component_value ( ) const
inline

◆ operator=()

css_token & litehtml::css_token::operator= ( const css_token token)
inline

Member Data Documentation

◆ [union]

union { ... } litehtml::css_token

◆ [union]

union { ... } litehtml::css_token

◆ [union]

union { ... } litehtml::css_token

◆ ch

int litehtml::css_token::ch

◆ hash_type

css_hash_type litehtml::css_token::hash_type

◆ n

number litehtml::css_token::n

◆ name

string litehtml::css_token::name

◆ repr

string litehtml::css_token::repr

◆ str

string litehtml::css_token::str

◆ type

css_token_type litehtml::css_token::type

◆ unit

string litehtml::css_token::unit

◆ value

vector<css_token> litehtml::css_token::value

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