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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? qtextcodec.cpp

?? QT 開發(fā)環(huán)境里面一個(gè)很重要的文件
?? CPP
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
            else if (try_locale_list(probably_koi8_rlocales, lang))                localeMapper = ru_RU_hack(lang);        }        delete [] ctype;        delete [] lang;    }    // If everything failed, we default to 8859-1    // We could perhaps default to 8859-15.    if (!localeMapper)        localeMapper = QTextCodec::codecForName("ISO 8859-1");#endif}static void setup(){#ifndef QT_NO_THREAD    QMutexLocker locker(qt_global_mutexpool ?                        qt_global_mutexpool->get(&all) : 0);#endif    if (all)        return;    if (destroying_is_ok)        qWarning("QTextCodec: Creating new codec during codec cleanup");    all = new QList<QTextCodec*>;    // create the cleanup object to cleanup all codecs on exit    (void) createQTextCodecCleanup();#ifndef QT_NO_CODECS#  if defined(Q_WS_X11) && !defined(QT_BOOTSTRAPPED)    // no font codecs when bootstrapping    (void)new QFontLaoCodec;#    if defined(QT_NO_ICONV)    // no iconv(3) support, must build all codecs into the library    (void)new QFontGb2312Codec;    (void)new QFontGbkCodec;    (void)new QFontGb18030_0Codec;    (void)new QFontJis0208Codec;    (void)new QFontJis0201Codec;    (void)new QFontKsc5601Codec;    (void)new QFontBig5hkscsCodec;    (void)new QFontBig5Codec;#    endif // QT_NO_ICONV && !QT_BOOTSTRAPPED#  endif // Q_WS_X11    (void)new QTsciiCodec;    for (int i = 0; i < 9; ++i)        (void)new QIsciiCodec(i);    for (int i = 0; i < QSimpleTextCodec::numSimpleCodecs; ++i)        (void)new QSimpleTextCodec(i);#  if defined(QT_NO_ICONV) && !defined(QT_BOOTSTRAPPED)    // no asian codecs when bootstrapping, sorry    (void)new QGb18030Codec;    (void)new QGbkCodec;    (void)new QGb2312Codec;    (void)new QEucJpCodec;    (void)new QJisCodec;    (void)new QSjisCodec;    (void)new QEucKrCodec;    (void)new QBig5Codec;    (void)new QBig5hkscsCodec;#  endif // QT_NO_ICONV && !QT_BOOTSTRAPPED#endif // QT_NO_CODECS#ifdef Q_OS_WIN32    (void) new QWindowsLocalCodec;#endif // Q_OS_WIN32    (void)new QUtf16Codec;    (void)new QUtf16BECodec;    (void)new QUtf16LECodec;    (void)new QLatin15Codec;    (void)new QLatin1Codec;    (void)new QUtf8Codec;#if defined(Q_OS_UNIX) && !defined(QT_NO_ICONV) && !defined(QT_BOOTSTRAPPED)    // QIconvCodec depends on the UTF-16 codec, so it needs to be created last    (void) new QIconvCodec();#endif    if (!localeMapper)        setupLocaleMapper();}/*!    \class QTextCodec    \brief The QTextCodec class provides conversions between text encodings.    \reentrant    \ingroup i18n    Qt uses Unicode to store, draw and manipulate strings. In many    situations you may wish to deal with data that uses a different    encoding. For example, most Japanese documents are still stored    in Shift-JIS or ISO 2022-JP, while Russian users often have their    documents in KOI8-R or Windows-1251.    Qt provides a set of QTextCodec classes to help with converting    non-Unicode formats to and from Unicode. You can also create your    own codec classes.    The supported encodings are:    \list    \o Apple Roman    \o \l{Big5 Text Codec}{Big5}    \o \l{Big5-HKSCS Text Codec}{Big5-HKSCS}    \o \l{EUC-JP Text Codec}{EUC-JP}    \o \l{EUC-KR Text Codec}{EUC-KR}    \o \l{GBK Text Codec}{GB18030-0}    \o IBM 850    \o IBM 866    \o IBM 874    \o \l{ISO 2022-JP (JIS) Text Codec}{ISO 2022-JP}    \o ISO 8859-1 to 10    \o ISO 8859-13 to 16    \o Iscii-Bng, Dev, Gjr, Knd, Mlm, Ori, Pnj, Tlg, and Tml    \o JIS X 0201    \o JIS X 0208    \o KOI8-R    \o KOI8-U    \o MuleLao-1    \o ROMAN8    \o \l{Shift-JIS Text Codec}{Shift-JIS}    \o TIS-620    \o \l{TSCII Text Codec}{TSCII}    \o UTF-8    \o UTF-16    \o UTF-16BE    \o UTF-16LE    \o Windows-1250 to 1258    \o WINSAMI2    \endlist    QTextCodecs can be used as follows to convert some locally encoded    string to Unicode. Suppose you have some string encoded in Russian    KOI8-R encoding, and want to convert it to Unicode. The simple way    to do it is like this:    \code        QByteArray encodedString = "...";        QTextCodec *codec = QTextCodec::codecForName("KOI8-R");        QString string = codec->toUnicode(encodedString);    \endcode    After this, \c string holds the text converted to Unicode.    Converting a string from Unicode to the local encoding is just as    easy:    \code        QString string = "...";        QTextCodec *codec = QTextCodec::codecForName("KOI8-R");        QByteArray encodedString = codec->fromUnicode(string);    \endcode    To read or write files in various encodings, use QTextStream and    its \l{QTextStream::setCodec()}{setCodec()} function. See the    \l{tools/codecs}{Codecs} example for an application of QTextCodec    to file I/O.    Some care must be taken when trying to convert the data in chunks,    for example, when receiving it over a network. In such cases it is    possible that a multi-byte character will be split over two    chunks. At best this might result in the loss of a character and    at worst cause the entire conversion to fail.    The approach to use in these situations is to create a QTextDecoder    object for the codec and use this QTextDecoder for the whole    decoding process, as shown below:    \code        QTextCodec *codec = QTextCodec::codecForName("Shift-JIS");        QTextDecoder *decoder = codec->makeDecoder();        QString string;        while (new_data_available()) {            QByteArray chunk = get_new_data();            string += decoder->toUnicode(chunk);        }    \endcode    The QTextDecoder object maintains state between chunks and therefore    works correctly even if a multi-byte character is split between    chunks.    \section1 Creating Your Own Codec Class    Support for new text encodings can be added to Qt by creating    QTextCodec subclasses.    The pure virtual functions describe the encoder to the system and    the coder is used as required in the different text file formats    supported by QTextStream, and under X11, for the locale-specific    character input and output.    To add support for another encoding to Qt, make a subclass of    QTextCodec and implement the functions listed in the table below.    \table    \header \o Function \o Description    \row \o name()         \o Returns the official name for the encoding. If the            ncoding is listed in the            \l{http://www.iana.org/assignments/character-sets}{IANA            character-sets encoding file}, the name should be the            preferred MIME name for the encoding.    \row \o aliases()         \o Returns a list of alternative names for the encoding.            QTextCodec provides a default implementation that returns            an empty list. For example, "ISO-8859-1" has "latin1",	    "CP819", "IBM819", and "iso-ir-100" as aliases.    \row \o mibEnum()         \o Return the MIB enum for the encoding if it is listed in            the \l{http://www.iana.org/assignments/character-sets}{IANA            character-sets encoding file}.    \row \o convertToUnicode()         \o Converts an 8-bit character string to Unicode.    \row \o convertFromUnicode()         \o Converts a Unicode string to an 8-bit character string.    \endtable    You may find it more convenient to make your codec class    available as a plugin; see \l{How to Create Qt Plugins} for    details.    \sa QTextStream, QTextDecoder, QTextEncoder, {Codecs Example}*//*!    \enum QTextCodec::ConversionFlag    \value DefaultConversion  No flag is set.    \value ConvertInvalidToNull  If this flag is set, invalid input results in           an empty string.    \value IgnoreHeader  Ignore any Unicode byte-order mark and don't generate any.*//*!    \fn QTextCodec::ConverterState::ConverterState(ConversionFlags flags)    Constructs a ConverterState object initialized with the given \a flags.*//*!    \fn QTextCodec::ConverterState::~ConverterState()    Destroys the ConverterState object.*//*!    \nonreentrant    Constructs a QTextCodec, and gives it the highest precedence. The    QTextCodec should always be constructed on the heap (i.e. with \c    new). Qt takes ownership and will delete it when the application    terminates.*/QTextCodec::QTextCodec(){    setup();    all->prepend(this);}/*!    \nonreentrant    Destroys the QTextCodec. Note that you should not delete codecs    yourself: once created they become Qt's responsibility.*/QTextCodec::~QTextCodec(){    if (!destroying_is_ok)        qWarning("QTextCodec::~QTextCodec: Called by application");    if (all)        all->removeAll(this);}/*!    \fn QTextCodec *QTextCodec::codecForName(const char *name)    Searches all installed QTextCodec objects and returns the one    which best matches \a name; the match is case-insensitive. Returns    0 if no codec matching the name \a name could be found.*//*!    Searches all installed QTextCodec objects and returns the one    which best matches \a name; the match is case-insensitive. Returns    0 if no codec matching the name \a name could be found.*/QTextCodec *QTextCodec::codecForName(const QByteArray &name){    if (name.isEmpty())        return 0;    setup();    for (int i = 0; i < all->size(); ++i) {        QTextCodec *cursor = all->at(i);        if (nameMatch(cursor->name(), name))            return cursor;        QList<QByteArray> aliases = cursor->aliases();        for (int i = 0; i < aliases.size(); ++i)            if (nameMatch(aliases.at(i), name))                return cursor;    }    return createForName(name);}/*!    Returns the QTextCodec which matches the \link    QTextCodec::mibEnum() MIBenum\endlink \a mib.*/QTextCodec* QTextCodec::codecForMib(int mib){    setup();    // Qt 3 used 1000 (mib for UCS2) as it's identifier for the utf16 codec. Map    // this correctly for compatibility.    if (mib == 1000)        mib = 1015;    QList<QTextCodec*>::ConstIterator i;    for (int i = 0; i < all->size(); ++i) {        QTextCodec *cursor = all->at(i);        if (cursor->mibEnum() == mib)            return cursor;    }    return createForMib(mib);}/*!    Returns the list of all available codecs, by name. Call    QTextCodec::codecForName() to obtain the QTextCodec for the name.    The list may contain many mentions of the same codec    if the codec has aliases.    \sa availableMibs(), name(), aliases()*/QList<QByteArray> QTextCodec::availableCodecs(){    setup();    QList<QByteArray> codecs;    for (int i = 0; i < all->size(); ++i) {        codecs += all->at(i)->name();        codecs += all->at(i)->aliases();    }#ifndef QT_NO_TEXTCODECPLUGIN    QFactoryLoader *l = loader();    QStringList keys = l->keys();    for (int i = 0; i < keys.size(); ++i) {        if (!keys.at(i).startsWith(QLatin1String("MIB: "))) {            QByteArray name = keys.at(i).toLatin1();            if (!codecs.contains(name))                codecs += name;        }    }#endif    return codecs;}/*!    Returns the list of MIBs for all available codecs. Call    QTextCodec::codecForMib() to obtain the QTextCodec for the MIB.    \sa availableCodecs(), mibEnum()*/QList<int> QTextCodec::availableMibs(){    setup();    QList<int> codecs;    for (int i = 0; i < all->size(); ++i)        codecs += all->at(i)->mibEnum();#ifndef QT_NO_TEXTCODECPLUGIN    QFactoryLoader *l = loader();    QStringList keys = l->keys();    for (int i = 0; i < keys.size(); ++i) {        if (keys.at(i).startsWith(QLatin1String("MIB: "))) {            int mib = keys.at(i).mid(5).toInt();            if (!codecs.contains(mib))                codecs += mib;        }    }#endif    return codecs;}/*!    Set the codec to \a c; this will be returned by codecForLocale().    This might be needed for some applications that want to use their    own mechanism for setting the locale.    Setting this codec is not supported on DOS based Windows.    \sa codecForLocale()*/void QTextCodec::setCodecForLocale(QTextCodec *c){#ifdef Q_WS_WIN    if (QSysInfo::WindowsVersion& QSysInfo::WV_DOS_based)	return;#endif    localeMapper = c;}/*!    Returns a pointer to the codec most suitable for this locale.    On Windows, the codec will be based on a system locale. On Unix    systems, starting with Qt 4.2, the codec will be using the \e    iconv library. Note that in both cases the codec's name will be    "System".*/QTextCodec* QTextCodec::codecForLocale(){    if (localeMapper)        return localeMapper;    setup();    return localeMapper;}/*!    \fn QByteArray QTextCodec::name() const    QTextCodec subclasses must reimplement this function. It returns    the name of the encoding supported by the subclass.    If the codec is registered as a character set in the    \link http://www.iana.org/assignments/character-sets    IANA character-sets encoding file\endlink this method should return

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区黄视频| 热久久国产精品| 日韩一区二区在线看| 国产一区二区三区免费看 | 91福利精品视频| 精品一区二区三区免费观看 | 亚洲色欲色欲www| 日韩精品在线网站| 欧美亚洲国产一区二区三区| 久草中文综合在线| 五月婷婷综合网| 亚洲蜜臀av乱码久久精品| 精品国偷自产国产一区| 欧美日韩精品一区二区天天拍小说 | 成人午夜在线免费| 麻豆精品久久精品色综合| 一区二区三区在线观看动漫 | 婷婷丁香久久五月婷婷| 中文字幕在线不卡一区 | 精品久久久久一区| 欧美年轻男男videosbes| zzijzzij亚洲日本少妇熟睡| 韩国三级电影一区二区| 亚洲第四色夜色| 亚洲成人中文在线| 亚洲一二三四久久| 亚洲免费大片在线观看| 亚洲四区在线观看| 欧美激情中文不卡| 国产欧美日韩综合| 久久精品视频在线免费观看| 26uuu亚洲综合色| 久久影院电视剧免费观看| 欧美丰满少妇xxxbbb| 欧美三级电影精品| 欧美日韩一区不卡| 欧美猛男超大videosgay| 欧美在线免费视屏| 欧美三级视频在线观看| 欧美狂野另类xxxxoooo| 在线综合+亚洲+欧美中文字幕| 欧美疯狂做受xxxx富婆| 日韩一级欧美一级| 26uuu久久天堂性欧美| 久久婷婷一区二区三区| 亚洲第一成年网| 午夜精品久久久久久久久久| 亚洲成人动漫在线免费观看| 亚洲欧美日韩国产手机在线 | 欧美片网站yy| 色综合色综合色综合| 色狠狠av一区二区三区| 91婷婷韩国欧美一区二区| 成人国产精品免费网站| 国产大陆精品国产| 国产成人av在线影院| 国产福利一区在线| 蜜臀久久久99精品久久久久久| 婷婷开心激情综合| 一级女性全黄久久生活片免费| **欧美大码日韩| ㊣最新国产の精品bt伙计久久| 亚洲欧洲日韩在线| 亚洲欧美日韩在线不卡| 亚洲欧美日韩系列| 亚洲综合激情网| 视频一区二区三区在线| 免费成人av在线| 国内外成人在线| 激情五月婷婷综合网| 成人激情黄色小说| 91香蕉视频mp4| 欧美色图天堂网| 欧美一级爆毛片| 久久久久久久一区| 亚洲欧洲性图库| 亚洲午夜激情网页| 日韩电影在线观看网站| 精品系列免费在线观看| 国产乱人伦精品一区二区在线观看| 激情成人综合网| 91视视频在线观看入口直接观看www | 国产制服丝袜一区| 国产精品99久久久| 99麻豆久久久国产精品免费优播| 91福利视频网站| 欧美理论片在线| 欧美成人伊人久久综合网| 一区二区三区日韩欧美| 亚洲成人手机在线| 国产精品18久久久久久久网站| a在线播放不卡| 欧美高清性hdvideosex| 国产亚洲精品中文字幕| 亚洲一区二区三区激情| 国产一区二区精品在线观看| 91国模大尺度私拍在线视频| 91精品国产综合久久蜜臀| 国产欧美日韩综合| 午夜电影久久久| 国产麻豆日韩欧美久久| 欧美肥妇free| 亚洲图片你懂的| 免费在线观看一区二区三区| 成人免费高清视频在线观看| 欧美伦理影视网| 国产精品久久毛片| 麻豆精品一区二区三区| 91美女片黄在线观看| 欧美日韩国产综合久久| 亚洲影视资源网| 国产精品香蕉一区二区三区| 欧美日韩午夜在线| 国产精品久久久一本精品 | 国产酒店精品激情| 欧美综合久久久| 久久精品亚洲一区二区三区浴池| 亚洲无人区一区| www.日韩精品| 亚洲精品一线二线三线| 亚洲成人av一区| 99久久伊人精品| 亚洲精品在线免费观看视频| 亚洲成av人在线观看| 成人av在线观| 国产亚洲午夜高清国产拍精品| 视频一区中文字幕| 色综合久久天天| 国产精品成人免费| 玖玖九九国产精品| 欧美xxxx老人做受| 视频一区欧美精品| 欧美亚洲愉拍一区二区| 一区二区中文字幕在线| 国产精品1区二区.| 欧美成人在线直播| 日韩精品乱码av一区二区| 色婷婷久久久久swag精品 | 日本不卡一区二区| 欧美日韩免费观看一区三区| 亚洲免费观看在线视频| 成人免费毛片高清视频| 久久精品这里都是精品| 久久精品国产99国产| 91超碰这里只有精品国产| 亚洲国产精品视频| 色偷偷88欧美精品久久久| 一区二区欧美视频| 欧美视频第二页| 亚洲一区二区三区视频在线播放 | 国产高清在线观看免费不卡| 精品久久一区二区| 国产一区二区免费视频| 久久综合国产精品| 国内精品久久久久影院色| 精品国产一区二区三区久久久蜜月| 日本午夜精品视频在线观看| 欧美老肥妇做.爰bbww视频| 亚洲黄一区二区三区| 欧美日韩久久一区| 视频一区二区三区中文字幕| 日韩一级高清毛片| 国产一区二区三区视频在线播放 | 成人免费在线播放视频| 99久久er热在这里只有精品66| 国产精品免费看片| 日本黄色一区二区| 亚洲精品国产第一综合99久久| 欧美一区二区三区男人的天堂| 奇米一区二区三区av| 精品国产乱码91久久久久久网站| 精品影院一区二区久久久| 国产亚洲欧美色| 91碰在线视频| 舔着乳尖日韩一区| 日韩精品一区二区三区四区| 不卡一区二区在线| 亚洲一区二三区| 欧美一区二区国产| 国产成人亚洲综合色影视| 亚洲婷婷综合久久一本伊一区| 色国产精品一区在线观看| 美女一区二区在线观看| 国产精品三级在线观看| 欧美亚一区二区| 精品一区二区三区日韩| 中文字幕在线视频一区| av激情综合网| 久久av资源站| 中文字幕亚洲一区二区av在线| 欧洲在线/亚洲| 国产综合久久久久久鬼色| 国产精品动漫网站| 51精品秘密在线观看| 国产成人免费在线| 日本aⅴ精品一区二区三区| 日本一区二区视频在线| 欧美日韩高清一区二区| 福利一区在线观看| 视频一区二区中文字幕|