Skip to content

Commit 17f3588

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#unicode_normalized?
1 parent 43e26d0 commit 17f3588

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

string.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11986,8 +11986,9 @@ rb_str_unicode_normalize_bang(int argc, VALUE *argv, VALUE str)
1198611986
/* call-seq:
1198711987
* unicode_normalized?(form = :nfc) -> true or false
1198811988
*
11989-
* Returns +true+ if +self+ is in the given +form+ of Unicode normalization,
11990-
* +false+ otherwise.
11989+
* Returns whether +self+ is in the given +form+ of Unicode normalization;
11990+
* see String#unicode_normalize.
11991+
*
1199111992
* The +form+ must be one of +:nfc+, +:nfd+, +:nfkc+, or +:nfkd+.
1199211993
*
1199311994
* Examples:
@@ -12001,10 +12002,9 @@ rb_str_unicode_normalize_bang(int argc, VALUE *argv, VALUE str)
1200112002
* Raises an exception if +self+ is not in a Unicode encoding:
1200212003
*
1200312004
* s = "\xE0".force_encoding(Encoding::ISO_8859_1)
12004-
* s.unicode_normalized? # Raises Encoding::CompatibilityError.
12005-
*
12006-
* Related: String#unicode_normalize, String#unicode_normalize!.
12005+
* s.unicode_normalized? # Raises Encoding::CompatibilityError
1200712006
*
12007+
* Related: see {Querying}[rdoc-ref:String@Querying].
1200812008
*/
1200912009
static VALUE
1201012010
rb_str_unicode_normalized_p(int argc, VALUE *argv, VALUE str)

0 commit comments

Comments
 (0)