Current Version: 1.0.33
Project Name: csspp
Namespaces | Classes | Typedefs | Enumerations | Functions
csspp Namespace Reference

The namespace of all the classes in the CSS Preprocessor. More...

Namespaces

namespace  anonymous_namespace{assembler.cpp}
 
namespace  anonymous_namespace{color.cpp}
 
namespace  anonymous_namespace{compiler.cpp}
 
namespace  anonymous_namespace{csspp.cpp}
 
namespace  anonymous_namespace{error.cpp}
 
namespace  anonymous_namespace{expr_additive.cpp}
 
namespace  anonymous_namespace{expr_equality.cpp}
 
namespace  anonymous_namespace{internal_functions.cpp}
 
namespace  anonymous_namespace{node.cpp}
 
namespace  anonymous_namespace{nth_child.cpp}
 
namespace  anonymous_namespace{parser.cpp}
 
namespace  anonymous_namespace{unicode_range.cpp}
 

Classes

class  assembler
 
class  assembler_compact
 
class  assembler_compressed
 
class  assembler_expanded
 
class  assembler_impl
 
class  assembler_tidy
 
class  color
 
struct  color_table_t
 
class  compiler
 
class  csspp_exception_exit
 
class  csspp_exception_invalid_character
 
class  csspp_exception_invalid_token
 
class  csspp_exception_lexer
 
class  csspp_exception_logic
 
class  csspp_exception_overflow
 
class  csspp_exception_runtime
 
class  csspp_exception_unexpected_token
 
class  error
 
class  error_happened_t
 
class  expression
 
class  expression_variables_interface
 
class  lexer
 
class  node
 
class  nth_child
 
class  parser
 
class  position
 
class  safe_bool_t
 
class  safe_compiler_state_t
 
class  safe_error_stream_t
 
class  safe_error_t
 
class  safe_parents_t
 
class  safe_precision_t
 
class  unicode_range_t
 

Typedefs

typedef uint8_t byte_component_t
 
typedef float color_component_t
 
typedef double decimal_number_t
 
typedef uint32_t error_count_t
 
typedef int64_t integer_t
 
typedef int line_t
 
typedef std::vector< node::pointer_tnode_vector_t
 
typedef uint64_t range_value_t
 
typedef int32_t repeat_integer_t
 
typedef uint32_t rgba_color_t
 
typedef int32_t wide_char_t
 
typedef uint32_t wide_uchar_t
 

Enumerations

enum  boolean_t {
  BOOLEAN_INVALID = -1 ,
  BOOLEAN_FALSE = 0 ,
  BOOLEAN_TRUE = 1
}
 
enum class  error_mode_t {
  ERROR_DEBUG ,
  ERROR_DEC ,
  ERROR_ERROR ,
  ERROR_FATAL ,
  ERROR_HEX ,
  ERROR_INFO ,
  ERROR_WARNING
}
 
enum class  node_type_t {
  UNKNOWN ,
  ADD ,
  AND ,
  ASSIGNMENT ,
  AT_KEYWORD ,
  BOOLEAN ,
  CDC ,
  CDO ,
  CLOSE_CURLYBRACKET ,
  CLOSE_PARENTHESIS ,
  CLOSE_SQUAREBRACKET ,
  COLON ,
  COLOR ,
  COLUMN ,
  COMMA ,
  COMMENT ,
  CONDITIONAL ,
  DASH_MATCH ,
  DECIMAL_NUMBER ,
  DIVIDE ,
  DOLLAR ,
  EOF_TOKEN ,
  EQUAL ,
  EXCLAMATION ,
  FONT_METRICS ,
  FUNCTION ,
  GREATER_EQUAL ,
  GREATER_THAN ,
  HASH ,
  IDENTIFIER ,
  INCLUDE_MATCH ,
  INTEGER ,
  LESS_EQUAL ,
  LESS_THAN ,
  MODULO ,
  MULTIPLY ,
  NOT_EQUAL ,
  NULL_TOKEN ,
  OPEN_CURLYBRACKET ,
  OPEN_PARENTHESIS ,
  OPEN_SQUAREBRACKET ,
  PERCENT ,
  PERIOD ,
  PLACEHOLDER ,
  POWER ,
  PRECEDED ,
  PREFIX_MATCH ,
  REFERENCE ,
  SCOPE ,
  SEMICOLON ,
  STRING ,
  SUBSTRING_MATCH ,
  SUBTRACT ,
  SUFFIX_MATCH ,
  UNICODE_RANGE ,
  URL ,
  VARIABLE ,
  VARIABLE_FUNCTION ,
  WHITESPACE ,
  AN_PLUS_B ,
  ARG ,
  ARRAY ,
  COMPONENT_VALUE ,
  DECLARATION ,
  LIST ,
  MAP ,
  FRAME ,
  max_type
}
 
enum class  output_mode_t {
  COMPACT ,
  COMPRESSED ,
  EXPANDED ,
  TIDY
}
 

Functions

char const * csspp_library_version ()
 
std::string decimal_number_to_string (decimal_number_t d, bool remove_leading_zero)
 
int get_precision ()
 
int32_t constexpr mix_node_types (node_type_t a, node_type_t b)
 
node_type_t multiplicative_operator (node::pointer_t n)
 
node_type_t relational_operator (node::pointer_t n)
 
void set_precision (int precision)
 

Detailed Description

All the classes and many definitions appear under 'csspp'. It is strongly advised that you do not do a 'using csspp;' because some of the definitions are likely to spoil your namespace in a way you do not want it to.

Typedef Documentation

◆ byte_component_t

typedef uint8_t csspp::byte_component_t

Definition at line 28 of file color.h.

◆ color_component_t

typedef float csspp::color_component_t

Definition at line 27 of file color.h.

◆ decimal_number_t

typedef double csspp::decimal_number_t

Definition at line 59 of file csspp.h.

◆ error_count_t

typedef uint32_t csspp::error_count_t

Definition at line 43 of file error.h.

◆ integer_t

typedef int64_t csspp::integer_t

Definition at line 58 of file csspp.h.

◆ line_t

typedef int csspp::line_t

Definition at line 57 of file csspp.h.

◆ node_vector_t

typedef std::vector<node::pointer_t> csspp::node_vector_t

Definition at line 214 of file node.h.

◆ range_value_t

typedef uint64_t csspp::range_value_t

Definition at line 25 of file unicode_range.h.

◆ repeat_integer_t

typedef int32_t csspp::repeat_integer_t

Definition at line 26 of file nth_child.h.

◆ rgba_color_t

typedef uint32_t csspp::rgba_color_t

Definition at line 29 of file color.h.

◆ wide_char_t

typedef int32_t csspp::wide_char_t

Definition at line 55 of file csspp.h.

◆ wide_uchar_t

typedef uint32_t csspp::wide_uchar_t

Definition at line 56 of file csspp.h.

Enumeration Type Documentation

◆ boolean_t

Enumerator
BOOLEAN_INVALID 
BOOLEAN_FALSE 
BOOLEAN_TRUE 

Definition at line 33 of file node.h.

◆ error_mode_t

enum class csspp::error_mode_t
strong
Enumerator
ERROR_DEBUG 
ERROR_DEC 
ERROR_ERROR 
ERROR_FATAL 
ERROR_HEX 
ERROR_INFO 
ERROR_WARNING 

Definition at line 32 of file error.h.

◆ node_type_t

enum class csspp::node_type_t
strong
Enumerator
UNKNOWN 
ADD 
AND 
ASSIGNMENT 
AT_KEYWORD 
BOOLEAN 
CDC 
CDO 
CLOSE_CURLYBRACKET 
CLOSE_PARENTHESIS 
CLOSE_SQUAREBRACKET 
COLON 
COLOR 
COLUMN 
COMMA 
COMMENT 
CONDITIONAL 
DASH_MATCH 
DECIMAL_NUMBER 
DIVIDE 
DOLLAR 
EOF_TOKEN 
EQUAL 
EXCLAMATION 
FONT_METRICS 
FUNCTION 
GREATER_EQUAL 
GREATER_THAN 
HASH 
IDENTIFIER 
INCLUDE_MATCH 
INTEGER 
LESS_EQUAL 
LESS_THAN 
MODULO 
MULTIPLY 
NOT_EQUAL 
NULL_TOKEN 
OPEN_CURLYBRACKET 
OPEN_PARENTHESIS 
OPEN_SQUAREBRACKET 
PERCENT 
PERIOD 
PLACEHOLDER 
POWER 
PRECEDED 
PREFIX_MATCH 
REFERENCE 
SCOPE 
SEMICOLON 
STRING 
SUBSTRING_MATCH 
SUBTRACT 
SUFFIX_MATCH 
UNICODE_RANGE 
URL 
VARIABLE 
VARIABLE_FUNCTION 
WHITESPACE 
AN_PLUS_B 
ARG 
ARRAY 
COMPONENT_VALUE 
DECLARATION 
LIST 
MAP 
FRAME 
max_type 

Definition at line 40 of file node.h.

◆ output_mode_t

enum class csspp::output_mode_t
strong
Enumerator
COMPACT 
COMPRESSED 
EXPANDED 
TIDY 

Definition at line 26 of file assembler.h.

Function Documentation

◆ csspp_library_version()

char const * csspp::csspp_library_version ( )

Definition at line 66 of file csspp.cpp.

References CSSPP_VERSION.

◆ decimal_number_to_string()

std::string csspp::decimal_number_to_string ( decimal_number_t  d,
bool  remove_leading_zero 
)

◆ get_precision()

int csspp::get_precision ( )

Definition at line 71 of file csspp.cpp.

◆ mix_node_types()

int32_t constexpr csspp::mix_node_types ( node_type_t  a,
node_type_t  b 
)
constexpr

◆ multiplicative_operator()

node_type_t csspp::multiplicative_operator ( node::pointer_t  n)

Definition at line 51 of file expr_multiplicative.cpp.

References DIVIDE, IDENTIFIER, MODULO, MULTIPLY, and UNKNOWN.

Referenced by csspp::expression::multiplicative().

◆ relational_operator()

node_type_t csspp::relational_operator ( node::pointer_t  n)

Definition at line 86 of file expr_relational.cpp.

References GREATER_EQUAL, GREATER_THAN, LESS_EQUAL, LESS_THAN, and UNKNOWN.

Referenced by csspp::expression::relational().

◆ set_precision()

void csspp::set_precision ( int  precision)

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.