zoukankan      html  css  js  c++  java
  • 汉字的Unicode范围

    //note:

    匹配中文字符的正则表达式: [\u4e00-\u9fa5]

    qt中可以用如下正则表达式做验证:

    // CJK统一表意字符
    QRegExp rx("[\u4e00-\u9fa5]+");
    QValidator *validator = new QRegExpValidator(rx, this);
    ui->lineEditCustom->setValidator(validator);

    这个包含了CJK统一表意字符(大概是基本汉字吧),基本够用了。

    要查看所有unicode,可以用ubuntu自带的 字符映射表

    参考:

    http://www.unicode.org/Public/5.0.0/ucd/Unihan.html

      在网上搜索了一下汉字的Unicode范围,普遍给出了“U+4E00..U+9FA5”。但事实上这个范围是不完整的,甚至连基本的全角(中文)标点也未包含在内。根据最新的Unicode 5.0版整理如下:

      注:在绝大多数应用场合中,我们可以仅用(1)、(2)、(3)、(4)、(5)的集合作为CJK判断的依据。

      1)标准CJK文字

      http://www.unicode.org/Public/UNIDATA/Unihan.html

      Code point range

      Block name

      Release

      U+3400..U+4DB5

      CJK Unified Ideographs Extension A

      3.0

      U+4E00..U+9FA5

      CJK Unified Ideographs

      1.1

      U+9FA6..U+9FBB

      CJK Unified Ideographs

      4.1

      U+F900..U+FA2D

      CJK Compatibility Ideographs

      1.1

      U+FA30..U+FA6A

      CJK Compatibility Ideographs

      3.2

      U+FA70..U+FAD9

      CJK Compatibility Ideographs

      4.1

      U+20000..U+2A6D6

      CJK Unified Ideographs Extension B

      3.1

      U+2F800..U+2FA1D

      CJK Compatibility Supplement

      3.1

      2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF

      http://www.unicode.org/charts/PDF/UFF00.pdf

      3)CJK部首补充:2E80-2EFF

      http://www.unicode.org/charts/PDF/U2E80.pdf

      4)CJK标点符号:3000-303F

      http://www.unicode.org/charts/PDF/U3000.pdf

      5)CJK笔划:31C0-31EF

      http://www.unicode.org/charts/PDF/U31C0.pdf

      6)康熙部首:2F00-2FDF

      http://www.unicode.org/charts/PDF/U2F00.pdf

      7)汉字结构描述字符:2FF0-2FFF

      http://www.unicode.org/charts/PDF/U2FF0.pdf

      8)注音符号:3100-312F

      http://www.unicode.org/charts/PDF/U3100.pdf

      9)注音符号(闽南语、客家语扩展):31A0-31BF

      http://www.unicode.org/charts/PDF/U31A0.pdf

      10)日文平假名:3040-309F

      http://www.unicode.org/charts/PDF/U3040.pdf

      11)日文片假名:30A0-30FF

      http://www.unicode.org/charts/PDF/U30A0.pdf

      12)日文片假名拼音扩展:31F0-31FF

      http://www.unicode.org/charts/PDF/U31F0.pdf

      13)韩文拼音:AC00-D7AF

      http://www.unicode.org/charts/PDF/UAC00.pdf

      14)韩文字母:1100-11FF

      http://www.unicode.org/charts/PDF/U1100.pdf

      15)韩文兼容字母:3130-318F

      http://www.unicode.org/charts/PDF/U3130.pdf

      16)太玄经符号:1D300-1D35F

      http://www.unicode.org/charts/PDF/U1D300.pdf

      17)易经六十四卦象:4DC0-4DFF

      http://www.unicode.org/charts/PDF/U4DC0.pdf

      18)彝文音节:A000-A48F

      http://www.unicode.org/charts/PDF/UA000.pdf

      19)彝文部首:A490-A4CF

      http://www.unicode.org/charts/PDF/UA490.pdf

      20)盲文符号:2800-28FF

      http://www.unicode.org/charts/PDF/U2800.pdf

      21)CJK字母及月份:3200-32FF

      http://www.unicode.org/charts/PDF/U3200.pdf

      22)CJK特殊符号(日期合并):3300-33FF

      http://www.unicode.org/charts/PDF/U3300.pdf

      23)装饰符号(非CJK专用):2700-27BF

      http://www.unicode.org/charts/PDF/U2700.pdf

      24)杂项符号(非CJK专用):2600-26FF

      http://www.unicode.org/charts/PDF/U2600.pdf

      25)中文竖排标点:FE10-FE1F

      http://www.unicode.org/charts/PDF/UFE10.pdf

      26)CJK兼容符号(竖排变体、下划线、顿号):FE30-FE4F

      http://www.unicode.org/charts/PDF/UFE30.pdf

    查看全文
  • 相关阅读:
    进程与线程的区别
    信号列表详解
    同步与互斥
    互斥锁
    读写锁
    Redis QPS测试
    从分布式锁来看redis和zookpeer!
    JVM虚拟机调参
    log4j.properties配置详解与实例
    生产者消费者(消费者要消费完才能退出)
  • 原文地址:https://www.cnblogs.com/cute/p/2294565.html
  • 最新文章
  • Git备忘
    移动开发中更好的图片自适应
    教你制作书签脚本
    移动端切图备忘
    github的使用
    from disk cache和from memory cache区别
    git缓存
    vue-cli代理开发
    vue-cli中配置sass
    vue.js数据绑定
  • 热门文章
  • vue.js入门
    react入门
    总结js基础方法
    以代码爱好者角度来看AMD与CMD(转)
    如何解决安卓(系统版本低) CSS3 动画问题---高性能动画
    c语言排序代码实现
    select函数使用
    windows下线程库的使用
    fork炸弹
    共享内存(抄写)
Copyright © 2011-2022 走看看