5.4 字
5.4.1 字,字?
“字”(characters)就是通常所谓的“字符”。
5.4.2 例程
(require ming/racket/base) | package: ming |
composition
composition
字化数 : 字 + 化 + 数 = char->integer
composition
数化字 : 数 + 化 + 字 = integer->char
composition
字度/utf-8 : 字度 + / + utf-8 = char-utf-8-length
composition
composition
composition
composition
composition
composition
composition
composition
字<=?/ci : 字<=? + / + ci = char-ci<=?
composition
composition
字>=?/ci : 字>=? + / + ci = char-ci>=?
composition
字?/英 : 字? + / + 英 = char-alphabetic?
composition
字?/小写 : 字? + / + 小写 = char-lower-case?
composition
字?/大写 : 字? + / + 大写 = char-upper-case?
composition
字?/标题 : 字? + / + 标题 = char-title-case?
composition
数字? : 数 + 字 + ? = char-numeric?
composition
字?/符号 : 字? + / + 符号 = char-symbolic?
composition
字?/标点 : 字? + / + 标点 = char-punctuation?
composition
字?/象形 : 字? + / + 象形 = char-graphic?
composition
字?/whitespace : 字? + / + whitespace = char-whitespace?
composition
字?/blank : 字? + / + blank = char-blank?
composition
字?/iso-control : 字? + / + iso-control = char-iso-control?
composition
汉字? : 汉 + 字 + ? = char-extended-pictographic?
composition
字类 : 字 + 类 = char-general-category
composition
字属 : 字 + 属 = char-grapheme-break-property
composition
: a + k + e + - + k + n + o + w + n + - + c + h + a + r + - + r + a + n + g + e + - + l + i + s + t = make-known-char-range-list
composition
字大写化 : 字 + 大 + 写 + 化 = char-upcase
composition
字小写化 : 字 + 小 + 写 + 化 = char-downcase
composition
字标题化 : 字 + 标 + 题 + 化 = char-titlecase
composition
字标题化* : 字 + 标 + 题 + 化 + * = char-foldcase
composition
: h + a + r + - + g + r + a + p + h + e + m + e + - + s + t + e + p = char-grapheme-step