Use wide characters |
Top Previous Next |
User interface > Main menu > Menu: Options > Project options > Code generation > Use wide characters
If the wide-character option is activated, parser classes are created, which can process texts, which are using character sets with more than the 256 ASCII characters (Unicode). A single character then is represented by two bytes in the memory instead of only one. Instead of char, std::string and boost::regex the according data types: wchar_t, std::wstring and boost::wregex are used.
When this option is used, the parser class in the generated code is derived from:
CTT_Parser<wchar_t>
All texts and string functions of the parser systems then are based on the wchar_t type.
However, the "diagnostic" system isn't changed by the wchar_t template parameter : Error texts still are strings from chars and Meta functions like ProductionName still return std::string. If the diagnostic system and the parsing system are mixed, it can happen that the generated C++ code doesn't compile because of incompatible string operations.
|
This page belongs to the TextTransformer Documentation |
Home Content German |