diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-11-16 19:46:03 +0000 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-11-18 18:57:29 -0800 |
| commit | 1443f89d6942e19516a0fb10d25876021202ec5e (patch) | |
| tree | 40689c9d0fa56255374f1e81f6d6174c9ecb7244 /string.c | |
| parent | 319001192d59bc57923ba3838eb83685cb3af014 (diff) | |
[DOC] Tweaks for String#unicode_normalize
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 28 |
1 files changed, 1 insertions, 27 deletions
@@ -11926,34 +11926,8 @@ unicode_normalize_common(int argc, VALUE *argv, VALUE str, ID id) * call-seq: * unicode_normalize(form = :nfc) -> string * - * Returns a copy of +self+ with - * {Unicode normalization}[https://unicode.org/reports/tr15] applied. + * :include: doc/string/unicode_normalize.rdoc * - * Argument +form+ must be one of the following symbols - * (see {Unicode normalization forms}[https://unicode.org/reports/tr15/#Norm_Forms]): - * - * - +:nfc+: Canonical decomposition, followed by canonical composition. - * - +:nfd+: Canonical decomposition. - * - +:nfkc+: Compatibility decomposition, followed by canonical composition. - * - +:nfkd+: Compatibility decomposition. - * - * The encoding of +self+ must be one of: - * - * - Encoding::UTF_8 - * - Encoding::UTF_16BE - * - Encoding::UTF_16LE - * - Encoding::UTF_32BE - * - Encoding::UTF_32LE - * - Encoding::GB18030 - * - Encoding::UCS_2BE - * - Encoding::UCS_4BE - * - * Examples: - * - * "a\u0300".unicode_normalize # => "a" - * "\u00E0".unicode_normalize(:nfd) # => "a " - * - * Related: String#unicode_normalize!, String#unicode_normalized?. */ static VALUE rb_str_unicode_normalize(int argc, VALUE *argv, VALUE str) |
