u_char_names(Unicode)
u_char_names()所属R语言包:Unicode
Unicode Character Names
Unicode字符名称
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Find the names or labels of Unicode characters, or Unicode characters by their name.
或Unicode字符的Unicode字符的名称或标签,他们的名字。
用法----------Usage----------
u_char_name(x)
u_char_from_name(x, type = c("exact", "grep"), ...)
u_char_label(x)
参数----------Arguments----------
参数:x
an R object which can be coerced to a u_char vector of Unicode characters via as.u_char for u_char_name and u_char_label; a character vector otherwise.
R对象可以强制转换为一个u_char向量的Unicode字符通过as.u_char的u_char_name和u_char_label;字符向量,否则。
参数:type
one of "exact" or "grep", or an abbreviation thereof.
"exact"或"grep",或缩写。
参数:...
arguments to be passed to grepl when using this for pattern matching.
参数被传递给grepl时,使用此模式匹配。
Details
详细信息----------Details----------
The Unicode Standard provides a convention for labeling code points that do not have character names (control, reserved, noncharacter, private-use and surrogate code points). These labels can be obtained by u_char_label.
Unicode标准提供标签代码的惯例,没有字符的名称(控制,保留,非字符,私人使用的代理代码点)。这些标签可以通过以下方式获得u_char_label。
By default, exact matching is used for finding Unicode characters by name. When type = "grep", grepl is used for matching x against the Unicode character names; for now, Hangul syllable and CJK Unified Ideograph names are ignored in this case.
默认情况下,使用精确匹配查找Unicode字符的名称。当type = "grep",grepl用于匹配x对Unicode字符的名称;现在,韩文音节,在这种情况下,中日韩统一表意文字的名字会被忽略。
值----------Value----------
For u_char_name and u_char_label, a character vector with the names or labels, respectively, of the corresponding Unicode characters.
对于u_char_name和u_char_label的名称或标签,分别对应的Unicode字符,字符向量。
For u_char_from_name, a u_char object giving the Unicode characters with name exactly matching the given names.
对于u_char_from_name,u_char对象,使Unicode字符的名称完全匹配给定的名称。
实例----------Examples----------
x <- as.u_char(utf8ToInt("Austria"))
u_char_name(x)
## Derived Hangul syllable character names are also supported for[#派生的韩文音节的字符的名称,也支持]
## finding characters by exact matching:[#寻找精确匹配的字符:]
x <- u_char_name("0xAC00")
x
u_char_from_name(x)
## Find all Unicode characters with name matching 'DIGIT ONE'.[#查找所有Unicode字符的名称匹配的“数字ONE”。]
x <- u_char_from_name("\bDIGIT ONE\b", "g")
## And show their names.[#显示他们的名字。]
u_char_name(x)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|