#include <po_grammar.hpp>
Public Member Functions | |
po_grammar () | |
Public Attributes | |
qi::rule< Iterator > | white_line |
qi::rule< Iterator > | comment_line |
qi::rule< Iterator > | skipped_line |
qi::rule< Iterator > | skipped_block |
qi::rule< Iterator, char()> | escaped_character |
qi::rule< Iterator, std::string()> | single_line_string |
qi::rule< Iterator, std::string()> | multiline_string |
qi::rule< Iterator, std::string()> | message_id |
qi::rule< Iterator, std::string()> | message_id_plural |
qi::rule< Iterator, std::string()> | message_context |
qi::rule< Iterator, std::string()> | message_str |
qi::rule< Iterator, std::string(uint)> | message_str_plural |
qi::rule< Iterator, std::vector< std::string >)> | message_single_str |
qi::rule< Iterator, std::vector< std::string >uint)> | message_strs |
qi::rule< Iterator, plural_and_strings_type()> | message_singular |
qi::rule< Iterator, plural_and_strings_type()> | message_plural |
qi::rule< Iterator, po_message()> | message |
qi::rule< Iterator, qi::locals< bool > > | fuzzy |
qi::rule< Iterator > | preamble_comment_line |
qi::rule< Iterator > | preamble_comment_block |
qi::rule< Iterator > | ignored_comments |
consume any number of blocks, consisting of any number of comments followed by a white line More... | |
qi::rule< Iterator, bool()> | message_preamble |
consume any number of non-white comment line (using #). More... | |
Definition at line 33 of file po_grammar.hpp.
|
inline |
Fuzzy: Expect comment of the form #, with literal , fuzzy
in the list somewhere. We use a qi local to keep track of if we saw it, this avoids excessive backtracking
Definition at line 67 of file po_grammar.hpp.
References spirit_po::po_grammar< Iterator >::comment_line, spirit_po::po_grammar< Iterator >::escaped_character, spirit_po::po_grammar< Iterator >::fuzzy, spirit_po::po_grammar< Iterator >::ignored_comments, spirit_po::po_grammar< Iterator >::message, spirit_po::po_grammar< Iterator >::message_context, spirit_po::po_grammar< Iterator >::message_id, spirit_po::po_grammar< Iterator >::message_id_plural, spirit_po::po_grammar< Iterator >::message_plural, spirit_po::po_grammar< Iterator >::message_preamble, spirit_po::po_grammar< Iterator >::message_single_str, spirit_po::po_grammar< Iterator >::message_singular, spirit_po::po_grammar< Iterator >::message_str, spirit_po::po_grammar< Iterator >::message_str_plural, spirit_po::po_grammar< Iterator >::message_strs, spirit_po::po_grammar< Iterator >::multiline_string, spirit_po::po_grammar< Iterator >::preamble_comment_block, spirit_po::po_grammar< Iterator >::preamble_comment_line, spirit_po::po_grammar< Iterator >::single_line_string, spirit_po::po_grammar< Iterator >::skipped_block, spirit_po::po_grammar< Iterator >::skipped_line, and spirit_po::po_grammar< Iterator >::white_line.
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::comment_line |
Definition at line 35 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, char()> spirit_po::po_grammar< Iterator >::escaped_character |
Definition at line 39 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, qi::locals<bool> > spirit_po::po_grammar< Iterator >::fuzzy |
Definition at line 58 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::ignored_comments |
consume any number of blocks, consisting of any number of comments followed by a white line
Definition at line 63 of file po_grammar.hpp.
Referenced by spirit_po::catalog< hashmap_type, pf_compiler >::catalog(), and spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, po_message()> spirit_po::po_grammar< Iterator >::message |
Definition at line 55 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string()> spirit_po::po_grammar< Iterator >::message_context |
Definition at line 45 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string()> spirit_po::po_grammar< Iterator >::message_id |
Definition at line 43 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string()> spirit_po::po_grammar< Iterator >::message_id_plural |
Definition at line 44 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, plural_and_strings_type()> spirit_po::po_grammar< Iterator >::message_plural |
Definition at line 53 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, bool()> spirit_po::po_grammar< Iterator >::message_preamble |
consume any number of non-white comment line (using #).
bool result represents if we saw #, fuzzy comment
Definition at line 65 of file po_grammar.hpp.
Referenced by spirit_po::catalog< hashmap_type, pf_compiler >::catalog(), and spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::vector<std::string>)> spirit_po::po_grammar< Iterator >::message_single_str |
Definition at line 49 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, plural_and_strings_type()> spirit_po::po_grammar< Iterator >::message_singular |
Definition at line 52 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string()> spirit_po::po_grammar< Iterator >::message_str |
Definition at line 46 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string(uint)> spirit_po::po_grammar< Iterator >::message_str_plural |
Definition at line 47 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::vector<std::string>uint)> spirit_po::po_grammar< Iterator >::message_strs |
Definition at line 50 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string()> spirit_po::po_grammar< Iterator >::multiline_string |
Definition at line 41 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::preamble_comment_block |
Definition at line 60 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::preamble_comment_line |
Definition at line 59 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator, std::string()> spirit_po::po_grammar< Iterator >::single_line_string |
Definition at line 40 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::skipped_block |
Definition at line 37 of file po_grammar.hpp.
Referenced by spirit_po::catalog< hashmap_type, pf_compiler >::catalog(), and spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::skipped_line |
Definition at line 36 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().
qi::rule<Iterator> spirit_po::po_grammar< Iterator >::white_line |
Definition at line 34 of file po_grammar.hpp.
Referenced by spirit_po::po_grammar< Iterator >::po_grammar().