[ruby-cvs:61631] duerst:r54469 (trunk): * enc/unicode/case-folding.rb, casefold.h: Data generation to implement

duerst at ruby-lang.org duerst at ruby-lang.org
Fri Apr 1 20:58:47 JST 2016


duerst	2016-04-01 20:58:47 +0900 (Fri, 01 Apr 2016)

  New Revision: 54469

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54469

  Log:
    * enc/unicode/case-folding.rb, casefold.h: Data generation to implement
      swapcase functionality for titlecase characters. Swapcase isn't defined
      by Unicode, because the purpose/usage of swapcase is unclear anyway.
      The implementation follows a proposal from Nobu, swaping the case of
      each component of a titlecase character individually.
      This means that the titlecase characters have to be decomposed.
    * enc/unicode.c: Code using the above data.
    * test/ruby/enc/test_case_mapping.rb: Tests for the above.

  Modified files:
    trunk/ChangeLog
    trunk/enc/unicode/case-folding.rb
    trunk/enc/unicode/casefold.h
    trunk/enc/unicode.c
    trunk/test/ruby/enc/test_case_mapping.rb


More information about the ruby-cvs mailing list