Menu

#2 utf8_text

v1.0_(example)
open
nobody
None
1
2013-09-30
2013-09-30
No

In a previous version of quex, there existed a method utf8_text() to obtain the UTF8 encoded text of a token.
There is now a method pretty_char_text(), which unfortunately I cannot use, because it transforms newline into "\n" and similarly for tabs.
As an alternative, I could use

quex::MyLexer_unicode_to_utf8()

which however is unfortunately a function and not a method, so it has a different name in each variant of lexer I need to build for different languages.
Therefore I cannot build a single library for all languages.
BTW, the documentation on SourceForge says that it returns void, while instead it returns a string.

Could you please give us back the useful method utf8_text()?

Thank you.

Discussion


Log in to post a comment.