るりまサーチ

最速Rubyリファレンスマニュアル検索!
307件ヒット [301-307件を表示] (0.151秒)
トップページ > クエリ:t[x] > クエリ:-[x] > 種類:インスタンスメソッド[x] > クエリ:string[x] > クラス:String[x] > クエリ:encoding[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. irb/input-method encoding

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

String#unicode_normalize!(form = :nfc) -> self (12120.0)

self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。

...

@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。

//emlist[例][ruby]{
t
ext = "a\u0300"
t
ext.unicode_normalize!(:nfc)
t
ext == "\u00E0" # => true
t
ext.unicode_normalize!(:nfd)
t
ext == "a\u0300"...
...# => true
//}

@see String#unicode_normalize, String#unicode_normalized?...
<< < ... 2 3 4 >>