Translations:Development/KDevelop-PG-Qt Introduction/196/en
With %input_stream you can specify which class the lexer should use to get the characters to process, there are some predefined classes:
- QStringIterator, reads from QString, required (internal) encoding: UTF-16 or UCS-2
- QByteArrayIterator, reads from QByteArray, required encoding: ASCII, Latin-1 or UTF-8
- QUtf16ToUcs4Iterator, reads from UTF-16 QString, required encoding: UTF-32 (UCS-4)
- QUtf8ToUcs4Iterator, reads from UTF-8 QByteArray, required encoding: UTF-32 (UCS-4)
- QUtf8ToUcs2Iterator, reads from UTF-8 QByteArray, required encoding: UCS-2
- QUtf8ToUtf16Iterator, reads from UTF-8 QByteArray, required encoding: UTF-16
- QUtf8ToAsciiIterator, reads from UTF-8 QByteArray, will ignore all non-ASCII characters, reqired encoding: ASCII