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 916 of file inja.hpp.

Member Function Documentation

◆ update_open_chars()

void inja::LexerConfig::update_open_chars ( )
inline

Definition at line 936 of file inja.hpp.

936 {
937 open_chars = "";
938 if (open_chars.find(line_statement[0]) == std::string::npos) {
940 }
941 if (open_chars.find(statement_open[0]) == std::string::npos) {
943 }
944 if (open_chars.find(statement_open_no_lstrip[0]) == std::string::npos) {
946 }
947 if (open_chars.find(statement_open_force_lstrip[0]) == std::string::npos) {
949 }
950 if (open_chars.find(expression_open[0]) == std::string::npos) {
952 }
953 if (open_chars.find(expression_open_force_lstrip[0]) == std::string::npos) {
955 }
956 if (open_chars.find(comment_open[0]) == std::string::npos) {
958 }
959 if (open_chars.find(comment_open_force_lstrip[0]) == std::string::npos) {
961 }
962 }
std::string expression_open_force_lstrip
Definition inja.hpp:924
std::string comment_open_force_lstrip
Definition inja.hpp:928
std::string expression_open
Definition inja.hpp:923
std::string statement_open_force_lstrip
Definition inja.hpp:919
std::string open_chars
Definition inja.hpp:931
std::string statement_open_no_lstrip
Definition inja.hpp:918
std::string comment_open
Definition inja.hpp:927
std::string statement_open
Definition inja.hpp:917
std::string line_statement
Definition inja.hpp:922

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 929 of file inja.hpp.

929{"#}"};

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 930 of file inja.hpp.

930{"-#}"};

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

◆ comment_open

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

Definition at line 927 of file inja.hpp.

927{"{#"};

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 928 of file inja.hpp.

928{"{#-"};

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

◆ expression_close

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

Definition at line 925 of file inja.hpp.

925{"}}"};

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 926 of file inja.hpp.

926{"-}}"};

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

◆ expression_open

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

Definition at line 923 of file inja.hpp.

923{"{{"};

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 924 of file inja.hpp.

924{"{{-"};

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

◆ line_statement

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

Definition at line 922 of file inja.hpp.

922{"##"};

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 934 of file inja.hpp.

934{false};

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

◆ open_chars

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

Definition at line 931 of file inja.hpp.

931{"#{"};

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

◆ statement_close

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

Definition at line 920 of file inja.hpp.

920{"%}"};

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 921 of file inja.hpp.

921{"-%}"};

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

◆ statement_open

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

Definition at line 917 of file inja.hpp.

917{"{%"};

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 919 of file inja.hpp.

919{"{%-"};

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 918 of file inja.hpp.

918{"{%+"};

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

◆ trim_blocks

bool inja::LexerConfig::trim_blocks {false}

Definition at line 933 of file inja.hpp.

933{false};

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


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