MQTTSuite
Loading...
Searching...
No Matches
inja::LexerConfig Struct Reference

Class for lexer configuration. More...

#include <inja.hpp>

Collaboration diagram for inja::LexerConfig:

Public Member Functions

void update_open_chars ()

Public Attributes

std::string statement_open {"{%"}
std::string statement_open_no_lstrip {"{%+"}
std::string statement_open_force_lstrip {"{%-"}
std::string statement_close {"%}"}
std::string statement_close_force_rstrip {"-%}"}
std::string line_statement {"##"}
std::string expression_open {"{{"}
std::string expression_open_force_lstrip {"{{-"}
std::string expression_close {"}}"}
std::string expression_close_force_rstrip {"-}}"}
std::string comment_open {"{#"}
std::string comment_open_force_lstrip {"{#-"}
std::string comment_close {"#}"}
std::string comment_close_force_rstrip {"-#}"}
std::string open_chars {"#{"}
bool trim_blocks {false}
bool lstrip_blocks {false}

Detailed Description

Class for lexer configuration.

Definition at line 942 of file inja.hpp.

Member Function Documentation

◆ update_open_chars()

void inja::LexerConfig::update_open_chars ( )
inline

Definition at line 962 of file inja.hpp.

962 {
963 open_chars = "";
964 if (open_chars.find(line_statement[0]) == std::string::npos) {
966 }
967 if (open_chars.find(statement_open[0]) == std::string::npos) {
969 }
970 if (open_chars.find(statement_open_no_lstrip[0]) == std::string::npos) {
972 }
973 if (open_chars.find(statement_open_force_lstrip[0]) == std::string::npos) {
975 }
976 if (open_chars.find(expression_open[0]) == std::string::npos) {
978 }
979 if (open_chars.find(expression_open_force_lstrip[0]) == std::string::npos) {
981 }
982 if (open_chars.find(comment_open[0]) == std::string::npos) {
984 }
985 if (open_chars.find(comment_open_force_lstrip[0]) == std::string::npos) {
987 }
988 }
std::string expression_open_force_lstrip
Definition inja.hpp:950
std::string comment_open_force_lstrip
Definition inja.hpp:954
std::string expression_open
Definition inja.hpp:949
std::string statement_open_force_lstrip
Definition inja.hpp:945
std::string open_chars
Definition inja.hpp:957
std::string statement_open_no_lstrip
Definition inja.hpp:944
std::string comment_open
Definition inja.hpp:953
std::string statement_open
Definition inja.hpp:943
std::string line_statement
Definition inja.hpp:948

References comment_open, comment_open_force_lstrip, expression_open, expression_open_force_lstrip, line_statement, open_chars, statement_open, statement_open_force_lstrip, and statement_open_no_lstrip.

Referenced by inja::Environment::set_comment(), inja::Environment::set_expression(), inja::Environment::set_line_statement(), and inja::Environment::set_statement().

Here is the caller graph for this function:

Member Data Documentation

◆ comment_close

std::string inja::LexerConfig::comment_close {"#}"}

Definition at line 955 of file inja.hpp.

955{"#}"};

Referenced by inja::Lexer::scan(), and inja::Environment::set_comment().

◆ comment_close_force_rstrip

std::string inja::LexerConfig::comment_close_force_rstrip {"-#}"}

Definition at line 956 of file inja.hpp.

956{"-#}"};

Referenced by inja::Lexer::scan(), and inja::Environment::set_comment().

◆ comment_open

std::string inja::LexerConfig::comment_open {"{#"}

Definition at line 953 of file inja.hpp.

953{"{#"};

Referenced by inja::Lexer::scan(), inja::Environment::set_comment(), and update_open_chars().

◆ comment_open_force_lstrip

std::string inja::LexerConfig::comment_open_force_lstrip {"{#-"}

Definition at line 954 of file inja.hpp.

954{"{#-"};

Referenced by inja::Lexer::scan(), inja::Environment::set_comment(), and update_open_chars().

◆ expression_close

std::string inja::LexerConfig::expression_close {"}}"}

Definition at line 951 of file inja.hpp.

951{"}}"};

Referenced by inja::Lexer::scan(), and inja::Environment::set_expression().

◆ expression_close_force_rstrip

std::string inja::LexerConfig::expression_close_force_rstrip {"-}}"}

Definition at line 952 of file inja.hpp.

952{"-}}"};

Referenced by inja::Lexer::scan(), and inja::Environment::set_expression().

◆ expression_open

std::string inja::LexerConfig::expression_open {"{{"}

Definition at line 949 of file inja.hpp.

949{"{{"};

Referenced by inja::Lexer::scan(), inja::Environment::set_expression(), and update_open_chars().

◆ expression_open_force_lstrip

std::string inja::LexerConfig::expression_open_force_lstrip {"{{-"}

Definition at line 950 of file inja.hpp.

950{"{{-"};

Referenced by inja::Lexer::scan(), inja::Environment::set_expression(), and update_open_chars().

◆ line_statement

std::string inja::LexerConfig::line_statement {"##"}

Definition at line 948 of file inja.hpp.

948{"##"};

Referenced by inja::Lexer::scan(), inja::Environment::set_line_statement(), and update_open_chars().

◆ lstrip_blocks

bool inja::LexerConfig::lstrip_blocks {false}

Definition at line 960 of file inja.hpp.

960{false};

Referenced by inja::Lexer::scan(), and inja::Environment::set_lstrip_blocks().

◆ open_chars

std::string inja::LexerConfig::open_chars {"#{"}

Definition at line 957 of file inja.hpp.

957{"#{"};

Referenced by inja::Lexer::scan(), and update_open_chars().

◆ statement_close

std::string inja::LexerConfig::statement_close {"%}"}

Definition at line 946 of file inja.hpp.

946{"%}"};

Referenced by inja::Lexer::scan(), and inja::Environment::set_statement().

◆ statement_close_force_rstrip

std::string inja::LexerConfig::statement_close_force_rstrip {"-%}"}

Definition at line 947 of file inja.hpp.

947{"-%}"};

Referenced by inja::Lexer::scan(), and inja::Environment::set_statement().

◆ statement_open

std::string inja::LexerConfig::statement_open {"{%"}

Definition at line 943 of file inja.hpp.

943{"{%"};

Referenced by inja::Lexer::scan(), inja::Environment::set_statement(), and update_open_chars().

◆ statement_open_force_lstrip

std::string inja::LexerConfig::statement_open_force_lstrip {"{%-"}

Definition at line 945 of file inja.hpp.

945{"{%-"};

Referenced by inja::Lexer::scan(), inja::Environment::set_statement(), and update_open_chars().

◆ statement_open_no_lstrip

std::string inja::LexerConfig::statement_open_no_lstrip {"{%+"}

Definition at line 944 of file inja.hpp.

944{"{%+"};

Referenced by inja::Lexer::scan(), inja::Environment::set_statement(), and update_open_chars().

◆ trim_blocks

bool inja::LexerConfig::trim_blocks {false}

Definition at line 959 of file inja.hpp.

959{false};

Referenced by inja::Lexer::scan(), and inja::Environment::set_trim_blocks().


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