U:RDoc::AnyMethod[iI"unicode_normalize:EFI"String#unicode_normalize;TF: publico:RDoc::Markup::Document: @parts[S:RDoc::Markup::Heading: leveli: textI"Unicode Normalization;To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph; [ I"FReturns a normalized form of +str+, using Unicode normalizations ;TI"HNFC, NFD, NFKC, or NFKD. The normalization form used is determined ;TI"Mby +form+, which is any of the four values :nfc, :nfd, :nfkc, or :nfkd. ;TI"The default is :nfc.;T@ o;; [ I"NIf the string is not in a Unicode Encoding, then an Exception is raised. ;TI"KIn this context, 'Unicode Encoding' means any of UTF-8, UTF-16BE/LE, ;TI"Iand UTF-32BE/LE, as well as GB18030, UCS_2BE, and UCS_4BE. Anything ;TI" 'à' (same as "\u00E0") ;TI"D"a\u0300".unicode_normalize(:nfc) #=> 'à' (same as "\u00E0") ;TI"F"\u00E0".unicode_normalize(:nfd) #=> 'à' (same as "a\u0300") ;TI"A"\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd) ;TI"O #=> Encoding::CompatibilityError raised;T: @format0: @fileI"lib/unicode_normalize.rb;T:0@omit_headings_from_table_of_contents_below0I"&str.unicode_normalize(form=:nfc) ;T0[I"(form = :nfc);T@%FI" String;TcRDoc::NormalClassI" scanf;T0