Sha256: fedfc829dc7f7b27d0dadcd83f2569e698d635183a5bf11d004001633e452f17

Contents?: true

Size: 755 Bytes

Versions: 10

Compression:

Stored size: 755 Bytes

Contents

ruby-unf
========

Synopsis
--------

* A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby

Description
-----------

* Uses `unf_ext` on CRuby and `java.text.Normalizer` on JRuby.

* Normalizes UTF-8 strings into and from NFC, NFD, NFKC or NFKD

        # For bulk conversion
        normalizer = UNF::Normalizer.new
        a_bunch_of_strings.map! { |string|
          normalizer.normalize(string, :nfc) #=> string in NFC
        }

        # Class method
        UNF::Normalizer.normalize(string)

        # Instance methods of String
        string.to_nfc

Installation
------------

	gem install unf

License
-------

Copyright (c) 2011, 2012 Akinori MUSHA

Licensed under the 2-clause BSD license.
See `LICENSE` for details.

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
unf-0.1.1-jruby README.md
unf-0.1.1 README.md
unf-0.1.0 README.md
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/unf-0.0.5/README.md
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/unf-0.0.5/README.md
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/unf-0.0.5/README.md
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/unf-0.0.5/README.md
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/unf-0.0.5/README.md
unf-0.0.5-jruby README.md
unf-0.0.5 README.md