[ruby-cvs:57078] nobu:r49929 (trunk): normalize.rb: remove redundant hash

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Mar 11 12:56:44 JST 2015

nobu	2015-03-11 12:56:44 +0900 (Wed, 11 Mar 2015)

  New Revision: 49929


    normalize.rb: remove redundant hash
    * lib/unicode_normalize/normalize.rb (UnicodeNormalize): REGEXP_K
      matches only single chars which are keys of KOMPATIBLE_TABLE, so
      string in nfkd_one is always single char and one of the key of
      KOMPATIBLE_TABLE, that is that the default proc of NF_HASH_K only
      copies a pair in KOMPATIBLE_TABLE.  therefore NF_HASH_K is a
      part of KOMPATIBLE_TABLE always, and just redundant.

  Modified files:

More information about the ruby-cvs mailing list