以下成员源于类 QTextCodec are part of the Qt compatibility layer. We advise against using them in new code.
| QByteArray | fromUnicode (const QString & uc , int & lenInOut ) const |
| QByteArray | mimeName () const |
| QString | toUnicode (const QByteArray & a , int len ) const |
| QTextCodec * | codecForContent (const char * str , int size ) |
| QTextCodec * | codecForIndex (int i ) |
| QTextCodec * | codecForName (const char * hint , int accuracy ) |
| const char * | locale () |
[static]
QTextCodec
* QTextCodec::
codecForContent
(const
char
*
str
,
int
size
)
This functionality is no longer provided by Qt. This compatibility function always returns a null pointer.
[static]
QTextCodec
* QTextCodec::
codecForIndex
(
int
i
)
使用 availableCodecs () 或 availableMibs () instead and iterate through the resulting list.
[static]
QTextCodec
* QTextCodec::
codecForName
(const
char
*
hint
,
int
accuracy
)
使用 codecForName (const QByteArray &) overload instead.
这是重载函数。
[static]
const
char
* QTextCodec::
locale
()
Returns a string representing the current language and sublanguage, e.g. "pt" for Portuguese, or "pt_br" for Portuguese/Brazil.
另请参阅 QLocale .
使用 name () 代替。
这是重载函数。
a contains the source characters; len contains the number of characters in a to use.