Sha256: a2ea9984e5e3840732db9e8292ac58d86feeb9fc4f312d4e35c5ba375bb3fa51

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 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 Akinori MUSHA

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
domo-0.0.5 vendor/bundle/ruby/1.9.1/gems/unf-0.0.4/README.md
unf-0.0.4 README.md
unf-0.0.3 README.md