20#ifndef HEADER_TINYGETTEXT_PO_PARSER_HPP
21#define HEADER_TINYGETTEXT_PO_PARSER_HPP
59 void error(
const std::string& msg);
61 void error(
const std::string& msg) __attribute__((__noreturn__));
63 void warning(
const std::string& msg);
A simple dictionary class that mimics gettext() behaviour.
Definition: dictionary.hpp:35
Definition: po_parser.hpp:32
void parse()
Definition: po_parser.cpp:333
POParser(const POParser &)
bool prefix(const char *)
Definition: po_parser.cpp:327
void next_line()
Definition: po_parser.cpp:90
bool use_fuzzy
Definition: po_parser.hpp:37
bool eof
Definition: po_parser.hpp:40
void warning(const std::string &msg)
Definition: po_parser.cpp:70
Dictionary & dict
Definition: po_parser.hpp:36
bool is_empty_line()
Definition: po_parser.cpp:305
std::string current_line
Definition: po_parser.hpp:44
bool big5
Definition: po_parser.hpp:41
~POParser()
Definition: po_parser.cpp:65
POParser(const std::string &filename, std::istream &in_, Dictionary &dict_, bool use_fuzzy=true)
Definition: po_parser.cpp:51
void get_string_line(std::ostringstream &str, size_t skip)
Definition: po_parser.cpp:98
IConv conv
Definition: po_parser.hpp:46
void parse_header(const std::string &header)
Definition: po_parser.cpp:239
std::istream & in
Definition: po_parser.hpp:35
std::string filename
Definition: po_parser.hpp:34
int line_number
Definition: po_parser.hpp:43
POParser & operator=(const POParser &)
void error(const std::string &msg) __attribute__((__noreturn__))
Definition: po_parser.cpp:77
bool running
Definition: po_parser.hpp:39
std::string get_string(unsigned int skip)
Definition: po_parser.cpp:166
static bool pedantic
Definition: po_parser.hpp:70
static char * skip(char **buf, const char *delimiters)
Definition: mongoose.cpp:753