亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qtextcodec.cpp

?? QT 開發(fā)環(huán)境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
    the preferred mime name for the codec if defined, otherwise its name.*//*!    \fn int QTextCodec::mibEnum() const    Subclasses of QTextCodec must reimplement this function. It    returns the MIBenum (see \link    http://www.iana.org/assignments/character-sets the    IANA character-sets encoding file\endlink for more information).    It is important that each QTextCodec subclass returns the correct    unique value for this function.*//*!  Subclasses can return a number of aliases for the codec in question.  Standard aliases for codecs can be found in the  \link http://www.iana.org/assignments/character-sets  IANA character-sets encoding file\endlink.*/QList<QByteArray> QTextCodec::aliases() const{    return QList<QByteArray>();}/*!    \fn QString QTextCodec::convertToUnicode(const char *chars, int len,                                             ConverterState *state) const    QTextCodec subclasses must reimplement this function.    Converts the first \a len characters of \a chars from the    encoding of the subclass to Unicode, and returns the result in a    QString.    \a state can be 0, in which case the conversion is stateless and    default conversion rules should be used. If state is not 0, the    codec should save the state after the conversion in \a state, and    adjust the remainingChars and invalidChars members of the struct.*//*!    \fn QByteArray QTextCodec::convertFromUnicode(const QChar *input, int number,                                                  ConverterState *state) const    QTextCodec subclasses must reimplement this function.    Converts the first \a number of characters from the \a input array    from Unicode to the encoding of the subclass, and returns the result    in a QByteArray.    \a state can be 0 in which case the conversion is stateless and    default conversion rules should be used. If state is not 0, the    codec should save the state after the conversion in \a state, and    adjust the remainingChars and invalidChars members of the struct.*//*!    Creates a QTextDecoder which stores enough state to decode chunks    of \c{char *} data to create chunks of Unicode data.    The caller is responsible for deleting the returned object.*/QTextDecoder* QTextCodec::makeDecoder() const{    return new QTextDecoder(this);}/*!    Creates a QTextEncoder which stores enough state to encode chunks    of Unicode data as \c{char *} data.    The caller is responsible for deleting the returned object.*/QTextEncoder* QTextCodec::makeEncoder() const{    return new QTextEncoder(this);}/*!    \fn QByteArray QTextCodec::fromUnicode(const QChar *input, int number,                                           ConverterState *state) const    Converts the first \a number of characters from the \a input array    from Unicode to the encoding of this codec, and returns the result    in a QByteArray.    The \a state of the convertor used is updated.*//*!    Converts \a str from Unicode to the encoding of this codec, and    returns the result in a QByteArray.*/QByteArray QTextCodec::fromUnicode(const QString& str) const{    return convertFromUnicode(str.constData(), str.length(), 0);}/*!    \fn QString QTextCodec::toUnicode(const char *input, int size,                                      ConverterState *state) const    Converts the first \a size characters from the \a input from the    encoding of this codec to Unicode, and returns the result in a    QString.    The \a state of the convertor used is updated.*//*!    Converts \a a from the encoding of this codec to Unicode, and    returns the result in a QString.*/QString QTextCodec::toUnicode(const QByteArray& a) const{    return convertToUnicode(a.constData(), a.length(), 0);}/*!    Returns true if the Unicode character \a ch can be fully encoded    with this codec; otherwise returns false.*/bool QTextCodec::canEncode(QChar ch) const{    ConverterState state;    state.flags = ConvertInvalidToNull;    convertFromUnicode(&ch, 1, &state);    return (state.invalidChars == 0);}/*!    \overload    \a s contains the string being tested for encode-ability.*/bool QTextCodec::canEncode(const QString& s) const{    ConverterState state;    state.flags = ConvertInvalidToNull;    convertFromUnicode(s.constData(), s.length(), &state);    return (state.invalidChars == 0);}#ifdef QT3_SUPPORT/*!    Returns a string representing the current language and    sublanguage, e.g. "pt" for Portuguese, or "pt_br" for Portuguese/Brazil.    \sa QLocale*/const char *QTextCodec::locale(){    static char locale[6];    QByteArray l = QLocale::system().name().toLatin1();    int len = qMin(l.length(), 5);    memcpy(locale, l.constData(), len);    locale[len] = '\0';    return locale;}/*!    \overload*/QByteArray QTextCodec::fromUnicode(const QString& uc, int& lenInOut) const{    QByteArray result = convertFromUnicode(uc.constData(), lenInOut, 0);    lenInOut = result.length();    return result;}/*!    \overload    \a a contains the source characters; \a len contains the number of    characters in \a a to use.*/QString QTextCodec::toUnicode(const QByteArray& a, int len) const{    len = qMin(a.size(), len);    return convertToUnicode(a.constData(), len, 0);}#endif/*!    \overload    \a chars contains the source characters.*/QString QTextCodec::toUnicode(const char *chars) const{    int len = qstrlen(chars);    return convertToUnicode(chars, len, 0);}/*!    \class QTextEncoder    \brief The QTextEncoder class provides a state-based encoder.    \reentrant    \ingroup i18n    A text encoder converts text from Unicode into an encoded text format    using a specific codec.    The encoder converts Unicode into another format, remembering any    state that is required between calls.    \sa QTextCodec::makeEncoder(), QTextDecoder*//*!    \fn QTextEncoder::QTextEncoder(const QTextCodec *codec)    Constructs a text encoder for the given \a codec.*//*!    Destroys the encoder.*/QTextEncoder::~QTextEncoder(){}/*!    Converts the Unicode string \a str into an encoded QByteArray.*/QByteArray QTextEncoder::fromUnicode(const QString& str){    QByteArray result = c->fromUnicode(str.constData(), str.length(), &state);    return result;}/*!    \overload    Converts \a len characters (not bytes) from \a uc, and returns the    result in a QByteArray.*/QByteArray QTextEncoder::fromUnicode(const QChar *uc, int len){    QByteArray result = c->fromUnicode(uc, len, &state);    return result;}#ifdef QT3_SUPPORT/*!  \overload  Converts \a lenInOut characters (not bytes) from \a uc, and returns the  result in a QByteArray. The number of characters read is returned in  the \a lenInOut parameter.*/QByteArray QTextEncoder::fromUnicode(const QString& uc, int& lenInOut){    QByteArray result = c->fromUnicode(uc.constData(), lenInOut, &state);    lenInOut = result.length();    return result;}#endif/*!    \class QTextDecoder    \brief The QTextDecoder class provides a state-based decoder.    \reentrant    \ingroup i18n    A text decoder converts text from an encoded text format into Unicode    using a specific codec.    The decoder converts text in this format into Unicode, remembering any    state that is required between calls.    \sa QTextCodec::makeDecoder(), QTextEncoder*//*!    \fn QTextDecoder::QTextDecoder(const QTextCodec *codec)    Constructs a text decoder for the given \a codec.*//*!    Destroys the decoder.*/QTextDecoder::~QTextDecoder(){}/*!    \fn QString QTextDecoder::toUnicode(const char *chars, int len)    Converts the first \a len bytes in \a chars to Unicode, returning    the result.    If not all characters are used (e.g. if only part of a multi-byte    encoding is at the end of the characters), the decoder remembers    enough state to continue with the next call to this function.*/QString QTextDecoder::toUnicode(const char *chars, int len){    return c->toUnicode(chars, len, &state);}/*!    \overload    Converts the bytes in the byte array specified by \a ba to Unicode    and returns the result.*/QString QTextDecoder::toUnicode(const QByteArray &ba){    return c->toUnicode(ba.constData(), ba.length(), &state);}/*!    \fn QTextCodec* QTextCodec::codecForTr()    Returns the codec used by QObject::tr() on its argument. If this    function returns 0 (the default), tr() assumes Latin-1.    \sa setCodecForTr()*//*!    \fn void QTextCodec::setCodecForTr(QTextCodec *c)    \nonreentrant    Sets the codec used by QObject::tr() on its argument to \a c. If    \a c is 0 (the default), tr() assumes Latin-1.    If the literal quoted text in the program is not in the Latin-1    encoding, this function can be used to set the appropriate    encoding. For example, software developed by Korean programmers    might use eucKR for all the text in the program, in which case the    main() function might look like this:    \code        int main(int argc, char *argv[])        {            QApplication app(argc, argv);            QTextCodec::setCodecForTr(QTextCodec::codecForName("eucKR"));            ...        }    \endcode    Note that this is not the way to select the encoding that the \e    user has chosen. For example, to convert an application containing    literal English strings to Korean, all that is needed is for the    English strings to be passed through tr() and for translation    files to be loaded. For details of internationalization, see    \l{Internationalization with Qt}.    \sa codecForTr(), setCodecForCStrings()*//*!    \fn QTextCodec* QTextCodec::codecForCStrings()    Returns the codec used by QString to convert to and from \c{const    char *} and QByteArrays. If this function returns 0 (the default),    QString assumes Latin-1.    \sa setCodecForCStrings()*//*!    \fn void QTextCodec::setCodecForCStrings(QTextCodec *codec)    \nonreentrant    Sets the codec used by QString to convert to and from \c{const    char *} and QByteArrays. If the \a codec is 0 (the default),    QString assumes Latin-1.    \warning Some codecs do not preserve the characters in the ASCII    range (0x00 to 0x7F). For example, the Japanese Shift-JIS    encoding maps the backslash character (0x5A) to the Yen    character. To avoid undesirable side-effects, we recommend    avoiding such codecs with setCodecsForCString().    \sa codecForCStrings(), setCodecForTr()*//*!  \internal*/QTextCodec *QTextCodec::codecForHtml(const QByteArray &ba){    // determine charset    int mib = 4; // Latin-1    int pos;    QTextCodec *c = 0;    if (ba.size() > 1 && (((uchar)ba[0] == 0xfe && (uchar)ba[1] == 0xff)                          || ((uchar)ba[0] == 0xff && (uchar)ba[1] == 0xfe))) {        mib = 1015; // utf16    } else if (ba.size() > 2             && (uchar)ba[0] == 0xef             && (uchar)ba[1] == 0xbb             && (uchar)ba[2] == 0xbf) {        mib = 106; // utf-8    } else {        QByteArray header = ba.left(512).toLower();        if ((pos = header.indexOf("http-equiv=")) != -1) {            pos = header.indexOf("charset=", pos) + int(strlen("charset="));            if (pos != -1) {                int pos2 = header.indexOf('\"', pos+1);                QByteArray cs = header.mid(pos, pos2-pos);                //            qDebug("found charset: %s", cs.data());                c = QTextCodec::codecForName(cs);            }        }    }    if (!c)        c = QTextCodec::codecForMib(mib);    return c;}/*!    \fn QTextCodec *QTextCodec::codecForContent(const char *str, int size)    This functionality is no longer provided by Qt. This    compatibility function always returns a null pointer.*//*!    \fn QTextCodec *QTextCodec::codecForName(const char *hint, int accuracy)    Use the codecForName(const QByteArray &) overload instead.*//*!    \fn QTextCodec *QTextCodec::codecForIndex(int i)    Use availableCodecs() or availableMibs() instead and iterate    through the resulting list.*//*!    \fn QByteArray QTextCodec::mimeName() const    Use name() instead.*/#endif // QT_NO_TEXTCODEC

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类小说一区二区三区| 91美女片黄在线观看| 99久久久国产精品免费蜜臀| 欧美日韩高清在线| ㊣最新国产の精品bt伙计久久| 日本在线不卡视频| 色激情天天射综合网| 久久综合999| 六月丁香婷婷久久| 欧美高清精品3d| 亚洲美女免费视频| 成人av资源在线| 久久精品亚洲乱码伦伦中文| 日本欧美一区二区| 欧美无乱码久久久免费午夜一区 | 午夜一区二区三区视频| 国产xxx精品视频大全| 日韩一区二区三区视频在线| 亚洲一级二级在线| 91蜜桃网址入口| 中文字幕一区在线| 丰满少妇在线播放bd日韩电影| 欧美一区二区三区人| 亚洲国产综合人成综合网站| 色呦呦一区二区三区| 亚洲少妇屁股交4| 91视频.com| 亚洲美腿欧美偷拍| 欧美系列日韩一区| 婷婷开心久久网| 91精品国产手机| 美女视频免费一区| 精品国产乱码久久久久久久久| 久久精品国产澳门| 久久奇米777| 国产1区2区3区精品美女| 欧美极品aⅴ影院| av一二三不卡影片| 一区二区三区中文免费| 欧洲一区二区三区免费视频| 亚洲成av人片| 日韩精品中文字幕在线不卡尤物| 久久99国产精品久久99果冻传媒| 精品区一区二区| 国产精品乡下勾搭老头1| 国产日韩欧美a| 一本色道久久综合精品竹菊| 一区二区成人在线| 在线播放中文字幕一区| 久久超级碰视频| 国产精品灌醉下药二区| 色狠狠综合天天综合综合| 日欧美一区二区| 久久婷婷国产综合国色天香| www.视频一区| 日韩二区在线观看| 国产精品女人毛片| 欧美网站一区二区| 国产精品一区二区三区乱码| 1024国产精品| 日韩午夜在线影院| 波多野结衣精品在线| 亚洲成av人片在线观看无码| 精品日韩一区二区| 一本色道综合亚洲| 国产一区二区三区视频在线播放| 国产精品电影一区二区| 在线不卡的av| av成人动漫在线观看| 视频一区二区三区在线| 欧美国产日本韩| 欧美一级久久久| 色综合视频在线观看| 久国产精品韩国三级视频| 亚洲摸摸操操av| 久久久久97国产精华液好用吗| 欧美性生活大片视频| 国产不卡免费视频| 美女视频黄免费的久久| 亚洲久草在线视频| 欧美国产一区二区| 日韩欧美亚洲国产另类| 日本韩国视频一区二区| 国产高清不卡一区二区| 水蜜桃久久夜色精品一区的特点| 国产精品国产三级国产有无不卡| 91精品国产福利在线观看| av电影天堂一区二区在线| 成人午夜视频在线观看| 久久国产精品99精品国产 | 国产综合色视频| 亚洲国产sm捆绑调教视频| 中文字幕不卡在线播放| 欧美一区二区三区四区在线观看 | 久久久综合视频| 在线电影欧美成精品| 色久优优欧美色久优优| 成人三级在线视频| 国产毛片一区二区| 美美哒免费高清在线观看视频一区二区 | 久久精品免费看| 亚洲mv大片欧洲mv大片精品| 亚洲三级电影网站| 国产精品高潮呻吟| 国产精品久久久久久户外露出| 久久久综合视频| 欧美激情中文字幕| 久久久久99精品国产片| 久久久久久久综合色一本| 精品国产91洋老外米糕| 精品国产乱码久久久久久久| 精品久久久久久久人人人人传媒| 91精品欧美久久久久久动漫| 欧美精品自拍偷拍| 欧美一区二区啪啪| 日韩欧美在线不卡| 亚洲精品一区二区三区福利| 欧美精品一区二区三区蜜桃视频| 精品久久久久久亚洲综合网| 久久久久国产成人精品亚洲午夜| 久久久久一区二区三区四区| 国产精品美女一区二区| 中文字幕亚洲视频| 亚洲精品久久久蜜桃| 亚洲午夜av在线| 美女性感视频久久| 国产乱人伦偷精品视频不卡| 成人毛片在线观看| 欧洲在线/亚洲| 91麻豆精品久久久久蜜臀 | 福利一区二区在线| 不卡电影一区二区三区| 一本到不卡免费一区二区| 欧美日韩一区二区在线观看视频| 欧美精品在欧美一区二区少妇| 欧美成人vps| 国产精品久久国产精麻豆99网站| 综合久久久久久| 丝袜亚洲另类丝袜在线| 国内精品免费**视频| 成人avav影音| 欧美夫妻性生活| 久久久久久久久免费| 亚洲人亚洲人成电影网站色| 天涯成人国产亚洲精品一区av| 成人免费av资源| 色婷婷综合久久| 2022国产精品视频| 亚洲欧美国产毛片在线| 日本不卡在线视频| 成人免费视频app| 欧美乱妇20p| 国产精品嫩草久久久久| 亚洲国产日产av| 高清免费成人av| 69堂精品视频| 亚洲图片欧美激情| 美女一区二区视频| 色成人在线视频| 久久综合中文字幕| 亚洲国产精品自拍| 成人激情免费网站| 91精品免费在线观看| 日韩美女精品在线| 国产精品69久久久久水密桃| 欧美猛男gaygay网站| 中文字幕中文字幕在线一区 | 在线观看国产日韩| 久久久精品人体av艺术| 天堂一区二区在线| 色综合久久天天| 国产亚洲综合色| 久久电影国产免费久久电影| 欧美在线观看一区二区| 中文字幕av资源一区| 五月激情综合婷婷| 色婷婷激情综合| 国产精品嫩草影院av蜜臀| 国产精品一区二区三区四区 | 麻豆成人久久精品二区三区小说| 91在线观看污| 国产精品美女www爽爽爽| 久久99精品久久久久久国产越南| 欧美欧美欧美欧美首页| 亚洲一区二区3| 欧美三级电影精品| 亚洲精品福利视频网站| www.亚洲人| 国产精品美女久久久久久久久久久| 久久精品噜噜噜成人88aⅴ| 久久视频一区二区| 久久69国产一区二区蜜臀| 日韩视频一区二区三区| 蜜桃av噜噜一区| 日韩欧美一区二区三区在线| 日产国产高清一区二区三区| 91精品国产免费久久综合| 石原莉奈一区二区三区在线观看 | 久久久亚洲精品石原莉奈| 激情久久久久久久久久久久久久久久|