V2EX  ›  英汉词典

Codepoint

Definition / 定义

codepoint码位。在字符编码(尤其是 Unicode)中,用来表示某个字符的抽象数字编号。例如,字母 A 的码位是 U+0041。(不同编码格式如 UTF-8/UTF-16 会用不同方式把码位存成字节序列。)

Pronunciation / 发音

/ˈkoʊdˌpɔɪnt/

Examples / 例句

A codepoint is written like U+1F600.
码位通常写作 U+1F600 这样的形式。

Some emojis take more than one code unit in UTF-16, even though they represent a single codepoint.
有些表情符号在 UTF-16 里会占用不止一个代码单元,但它们对应的仍是同一个码位。

Etymology / 词源

code(编码)+ point(点/位置)组成,字面意思是“编码中的一个位置/点”。在 Unicode 语境中,它指“字符集合里的一个编号位置”,即码位。

Related Words / 相关词

Literary Works / 文学作品举例

  • The Unicode Standard(Unicode 联盟官方标准文档中大量使用 “code point” 术语)
  • Unicode Demystified(Richard Gillam,讨论 Unicode 与码位等概念)
  • *Programming Ruby (The Pickaxe Book)*(涉及字符串与 Unicode 时常提到 codepoint)
  • JavaScript: The Definitive Guide(讲解 Unicode、字符串与码位/代理项相关内容时出现该术语)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1958 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 11:37 · PVG 19:37 · LAX 03:37 · JFK 06:37
♥ Do have faith in what you're doing.