reorder_characters

reorder_characters(codepoints) Instance Public methods Re-order codepoints so the string becomes canonical.

pack_graphemes

pack_graphemes(unpacked) Instance Public methods Reverse operation of unpack_graphemes. Unicode.pack_graphemes(Unicode.unpack_graphemes('à¤à¥à¤·à¤¿')) # => 'à¤à¥à¤·à¤¿'

normalize

normalize(string, form=nil) Instance Public methods Returns the KC normalization of the string by default. NFKC is considered the best normalization form for passing strings to databases and validations. string - The string to perform normalization on. form - The form you want to normalize in. Should be one of the following: :c, :kc, :d, or :kd. Default is ActiveSupport::Multibyte.default_normalization_form.

in_char_class?

in_char_class?(codepoint, classes) Instance Public methods Detect whether the codepoint is in a certain character class. Returns true when it's in the specified character class and false otherwise. Valid character classes are: :cr, :lf, :l, :v, :lv, :lvt and :t. Primarily used by the grapheme cluster support.

downcase

downcase(string) Instance Public methods

decompose

decompose(type, codepoints) Instance Public methods Decompose composed characters to the decomposed form.

compose

compose(codepoints) Instance Public methods Compose decomposed characters to the composed form.

load

load() Instance Public methods Loads the Unicode database and returns all the internal objects of UnicodeDatabase.

===

===(other) Instance Public methods

new

new() Class Public methods