The QLatin1Char class provides an 8-bit ASCII/Latin-1 character. More...
#include <QLatin1Char>
QLatin1Char ( char c ) | |
char | toLatin1 () const |
ushort | unicode () const |
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
This class is only useful to avoid the codec for C strings business in the QChar(ch) constructor. You can avoid it by writing QChar(ch, 0).
See also QChar, QLatin1String, and QString.
Constructs a Latin-1 character for c. This constructor should be used when the encoding of the input character is known to be Latin-1.
Converts a Latin-1 character to an 8-bit ASCII representation of the character.
Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.