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

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

?? qisciicodec.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
字號:
/******************************************************************************** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.**** This file is part of the QtCore module of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://www.trolltech.com/products/qt/opensource.html**** If you are unsure which license is appropriate for your use, please** review the following information:** http://www.trolltech.com/products/qt/licensing.html or contact the** sales department at sales@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#include "qisciicodec_p.h"#include "qlist.h"#ifndef QT_NO_CODECS/*!    \class QIsciiCodec    \brief The QIsciiCodec class provides conversion to and from the ISCII encoding.    \internal*/struct Codecs {    const char *name;    ushort base;};static const Codecs codecs [] = {    { "Iscii-Dev", 0x900 },    { "Iscii-Bng", 0x980 },    { "Iscii-Pnj", 0xa00 },    { "Iscii-Gjr", 0xa80 },    { "Iscii-Ori", 0xb00 },    { "Iscii-Tml", 0xb80 },    { "Iscii-Tlg", 0xc00 },    { "Iscii-Knd", 0xc80 },    { "Iscii-Mlm", 0xd00 }};QIsciiCodec::~QIsciiCodec(){}QByteArray QIsciiCodec::name() const{  return codecs[idx].name;}int QIsciiCodec::mibEnum() const{    /* There is no MIBEnum for Iscii */    return -3000-idx;}#define INV 0xff/* iscii range from 0xa0 - 0xff */static const uchar iscii_to_uni_table[0x60] = {    0x00, 0x01, 0x02, 0x03,    0x05, 0x06, 0x07, 0x08,    0x09, 0x0a, 0x0b, 0x0e,    0x0f, 0x20, 0x0d, 0x12,    0x13, 0x14, 0x11, 0x15,    0x16, 0x17, 0x18, 0x19,    0x1a, 0x1b, 0x1c, 0x1d,    0x1e, 0x1f, 0x20, 0x21,    0x22, 0x23, 0x24, 0x25,    0x26, 0x27, 0x28, 0x29,    0x2a, 0x2b, 0x2c, 0x2d,    0x2e, 0x2f, 0x5f, 0x30,    0x31, 0x32, 0x33, 0x34,    0x35, 0x36, 0x37, 0x38,    0x39,  INV, 0x3e, 0x3f,    0x40, 0x41, 0x42, 0x43,    0x46, 0x47, 0x48, 0x45,    0x4a, 0x4b, 0x4c, 0x49,    0x4d, 0x3c, 0x64, 0x00,    0x00, 0x00, 0x00, 0x00,    0x00, 0x66, 0x67, 0x68,    0x69, 0x6a, 0x6b, 0x6c,    0x6d, 0x6e, 0x6f, 0x00,    0x00, 0x00, 0x00, 0x00};static const uchar uni_to_iscii_table[0x80] = {    0x00, 0xa1, 0xa2, 0xa3,    0x00, 0xa4, 0xa5, 0xa6,    0xa7, 0xa8, 0xa9, 0xaa,    0x00, 0xae, 0xab, 0xac,    0xad, 0xb2, 0xaf, 0xb0,    0xb1, 0xb3, 0xb4, 0xb5,    0xb6, 0xb7, 0xb8, 0xb9,    0xba, 0xbb, 0xbc, 0xbd,    0xbe, 0xbf, 0xc0, 0xc1,    0xc2, 0xc3, 0xc4, 0xc5,    0xc6, 0xc7, 0xc8, 0xc9,    0xca, 0xcb, 0xcc, 0xcd,    0xcf, 0xd0, 0xd1, 0xd2,    0xd3, 0xd4, 0xd5, 0xd6,    0xd7, 0xd8, 0x00, 0x00,    0xe9, 0x00, 0xda, 0xdb,    0xdc, 0xdd, 0xde, 0xdf,    0x00, 0xe3, 0xe0, 0xe1,    0xe2, 0xe7, 0xe4, 0xe5,    0xe6, 0xe8, 0x00, 0x00,    0x00, 0x00, 0x00, 0x00,    0x00, 0x00, 0x00, 0x00,    0x01, 0x02, 0x03, 0x04, // decomposable into the uc codes listed here + nukta    0x05, 0x06, 0x07, 0xce,    0x00, 0x00, 0x00, 0x00,    0xea, 0x08, 0xf1, 0xf2,    0xf3, 0xf4, 0xf5, 0xf6,    0xf7, 0xf8, 0xf9, 0xfa,    0x00, 0x00, 0x00, 0x00,    0x00, 0x00, 0x00, 0x00,    0x00, 0x00, 0x00, 0x00,    0x00, 0x00, 0x00, 0x00};static const uchar uni_to_iscii_pairs[] = {    0x00, 0x00,    0x15, 0x3c, // 0x958    0x16, 0x3c, // 0x959    0x17, 0x3c, // 0x95a    0x1c, 0x3c, // 0x95b    0x21, 0x3c, // 0x95c    0x22, 0x3c, // 0x95d    0x2b, 0x3c, // 0x95e    0x64, 0x64  // 0x965};QByteArray QIsciiCodec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const{    char replacement = '?';    bool halant = false;    if (state) {        if (state->flags & ConvertInvalidToNull)            replacement = 0;        halant = state->state_data[0];    }    int invalid = 0;    QByteArray result;    result.resize(2*len); //worst case    uchar *ch = (uchar *)result.data();    int base = codecs[idx].base;    for (int i =0; i < len; ++i) {        int pos = uc[i].unicode() - base;        if (pos > 0 && pos < 0x80) {            uchar iscii = uni_to_iscii_table[pos];            if (iscii > 0x80) {                *ch++ = iscii;            } else if (iscii) {                const uchar *pair = uni_to_iscii_pairs + 2*iscii;                *ch++ = *pair++;                *ch++ = *pair++;            } else {                *ch++ = replacement;                ++invalid;            }        } else {            if (uc[i].unicode() == 0x200c) { // ZWNJ                if (halant)                    // Consonant Halant ZWNJ -> Consonant Halant Halant                    *ch++ = 0xe8;            } else if (uc[i].unicode() == 0x200d) { // ZWJ                if (halant)                    // Consonant Halant ZWJ -> Consonant Halant Nukta                    *ch++ = 0xe9;            } else {                *ch++ = replacement;                ++invalid;            }        }        halant = (pos == 0x4d);    }    result.truncate(ch - (uchar *)result.data());    if (state) {        state->invalidChars += invalid;        state->state_data[0] = halant;    }    return result;}QString QIsciiCodec::convertToUnicode(const char* chars, int len, ConverterState *state) const{    bool halant = false;    if (state) {        halant = state->state_data[0];    }    QString result;    result.resize(len);    QChar *uc = (QChar *)result.unicode();    int base = codecs[idx].base;    for (int i = 0; i < len; ++i) {        ushort ch = (uchar) chars[i];        if (ch < 0xa0)            *uc++ = ch;        else {            ushort c = iscii_to_uni_table[ch - 0xa0];            if (halant && (c == INV || c == 0xe9)) {                // Consonant Halant INV -> Consonant Halant ZWJ                // Consonant Halant Nukta -> Consonant Halant ZWJ                *uc++ = QChar(0x200d);            } else if (halant && c == 0xe8) {                // Consonant Halant Halant -> Consonant Halant ZWNJ                *uc++ = QChar(0x200c);            } else {                *uc++ = QChar(c+base);            }        }        halant = ((uchar)chars[i] == 0xe8);    }    result.resize(uc - result.unicode());    if (state) {        state->state_data[0] = halant;    }    return result;}#endif // QT_NO_CODECS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.亚洲人| 国产精品欧美久久久久无广告| 精品国产区一区| 夜夜亚洲天天久久| 成人av网站在线观看| 欧美网站大全在线观看| 中文字幕第一区| 麻豆精品在线播放| 欧美亚洲高清一区| 日韩毛片精品高清免费| 国产麻豆精品视频| 欧美一级免费观看| 亚洲综合在线视频| 91美女精品福利| 国产精品不卡一区| 国产成人日日夜夜| 26uuu另类欧美亚洲曰本| 天天做天天摸天天爽国产一区| 91免费在线播放| 国产精品毛片大码女人| 国产精品一品视频| 久久亚洲一区二区三区四区| 日本成人超碰在线观看| 欧美人xxxx| 日本不卡中文字幕| 91精品国产综合久久婷婷香蕉| 亚洲地区一二三色| 欧美色网站导航| 午夜久久久久久| 91精品国产91热久久久做人人| 亚洲二区在线视频| 欧美日韩国产色站一区二区三区| 一区二区三区色| 欧美亚洲国产bt| 日本亚洲欧美天堂免费| 日韩免费一区二区| 国产一区二区视频在线播放| 国产三级欧美三级| 岛国精品在线观看| 国产精品免费久久| www.欧美日韩| 亚洲午夜免费视频| 777亚洲妇女| 精品亚洲aⅴ乱码一区二区三区| 精品奇米国产一区二区三区| 久久av中文字幕片| 欧美国产国产综合| 91黄色免费网站| 日韩精品亚洲一区二区三区免费| 日韩一级免费观看| 国产乱码精品1区2区3区| 欧美国产一区二区在线观看 | 一区二区三区在线免费| 精品视频在线看| 久久精品99国产精品| 久久婷婷综合激情| 91丨九色porny丨蝌蚪| 亚洲成a人v欧美综合天堂下载 | 久久久噜噜噜久久人人看| 国产黄色精品视频| 一区二区在线看| 日韩三级高清在线| 本田岬高潮一区二区三区| 国产精品精品国产色婷婷| 色妞www精品视频| 激情综合五月婷婷| 亚洲人成伊人成综合网小说| 欧美一级黄色录像| 成人免费看视频| 五月天欧美精品| 国产欧美久久久精品影院| 欧美伊人久久久久久久久影院| 久久er精品视频| 亚洲国产精品嫩草影院| 久久亚区不卡日本| 精品视频在线看| 99精品视频一区二区| 蜜臀国产一区二区三区在线播放| 1000精品久久久久久久久| 日韩一级在线观看| 欧美图区在线视频| 不卡视频一二三| 国产尤物一区二区在线| 亚洲综合另类小说| 国产精品人人做人人爽人人添 | 欧美视频一区二区三区四区| 狠狠色伊人亚洲综合成人| 亚洲一区二区三区不卡国产欧美| 久久久久久久免费视频了| 欧美日韩国产精选| 色哦色哦哦色天天综合| 大白屁股一区二区视频| 久久国产三级精品| 日韩专区一卡二卡| 亚洲国产婷婷综合在线精品| 国产精品久久综合| 欧美韩国日本不卡| 国产女人18毛片水真多成人如厕| 日韩一区二区影院| 欧美精品色一区二区三区| 色婷婷综合五月| 色综合久久久久久久| www.成人在线| 97se亚洲国产综合在线| 成人黄色在线看| 成人午夜短视频| 国产久卡久卡久卡久卡视频精品| 美女视频黄久久| 免费在线成人网| 毛片av中文字幕一区二区| 日韩高清中文字幕一区| 亚洲成av人片观看| 亚洲成av人片在线| 视频一区国产视频| 免费欧美在线视频| 精品一区二区免费看| 久久激五月天综合精品| 国产一区二区三区观看| 国产一区二区三区黄视频 | 日韩午夜激情视频| 日韩一区二区在线看片| 日韩视频国产视频| 久久嫩草精品久久久精品一| 国产视频一区二区在线| 国产精品久久午夜夜伦鲁鲁| 亚洲品质自拍视频网站| 亚洲一级二级三级在线免费观看| 亚洲电影一级片| 另类调教123区| 国产福利91精品一区二区三区| 成人午夜视频在线观看| 99精品黄色片免费大全| 欧美日韩激情一区二区三区| 777奇米四色成人影色区| 精品久久久久99| 中文在线免费一区三区高中清不卡| 国产精品理伦片| 综合久久久久久久| 午夜私人影院久久久久| 精品一区二区三区久久| 丁香啪啪综合成人亚洲小说| 欧美自拍偷拍一区| 欧美成人高清电影在线| 亚洲欧洲av色图| 免费在线看一区| 国产99久久久久| 欧美日韩一区 二区 三区 久久精品| 欧美一区二区三区四区五区| 久久精品人人做人人爽人人| 亚洲精品免费一二三区| 免费成人在线观看视频| a级精品国产片在线观看| 在线电影一区二区三区| 国产欧美视频在线观看| 五月天激情综合| 不卡一二三区首页| 日韩一区二区在线免费观看| 中文字幕一区二区三区在线不卡| 日本成人在线一区| 99久久99久久精品国产片果冻| 欧美日韩国产成人在线免费| 亚洲天堂免费在线观看视频| 水蜜桃久久夜色精品一区的特点| 国产精品99精品久久免费| 欧美日韩不卡一区二区| 国产精品久久久久久久久晋中| 日韩影院免费视频| 色综合久久中文综合久久97| 久久亚洲精精品中文字幕早川悠里 | 成人午夜电影网站| 日韩欧美另类在线| 一区二区三区视频在线看| 国产精品亚洲一区二区三区妖精| 欧洲另类一二三四区| 日本一区二区三区免费乱视频 | 日韩国产一区二| 色偷偷一区二区三区| 国产视频视频一区| 激情久久五月天| 欧美高清激情brazzers| **欧美大码日韩| 成人免费高清在线| 精品福利在线导航| 久久精品国产一区二区三| 欧美性生交片4| 一色桃子久久精品亚洲| 成人精品国产免费网站| 26uuu国产在线精品一区二区| 婷婷国产在线综合| 色欧美片视频在线观看| 中文字幕日韩欧美一区二区三区| 大桥未久av一区二区三区中文| 久久―日本道色综合久久| 国精产品一区一区三区mba视频| 欧美一区二区三区的| 日精品一区二区三区| 51午夜精品国产| 久久国产夜色精品鲁鲁99| 精品国产污污免费网站入口| 国内精品免费**视频|