39 void data (
const char * s,
int len)
override;
40 void warning (
const char * message,
int line,
int column)
override;
51 bool asBoolean(
const std::string& str);
52 [[noreturn]]
void parseError(
const std::string& message);
54 void startElementInsideMeta(
const std::string&
name);
56 void checkIfFormatIsSupported();
61 std::string _stringTagName;
62 bool _hasPlural =
false;
70 std::map<std::string, int> _nextIndex;
74 LOOKING_FOR_RESOURCE_ELEMENT,
75 LOOKING_FOR_META_ELEMENT,
77 READING_FILE_TYPE_ELEMENT,
78 READING_FORMAT_VERSION_ELEMENT,
79 LOOKING_FOR_STRINGS_ELEMENT,
80 READING_STRINGS_ELEMENT,
81 READING_TRANSLATABLE_STRING,
82 AFTER_STRINGS_ELEMENT,
85 State _state = State::LOOKING_FOR_RESOURCE_ELEMENT;
88 std::string _fileType;
89 bool _foundFileType =
false;
90 std::string _formatVersion;
91 bool _foundFormatVersion =
false;