pack_graphemes

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

reorder_characters

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

swapcase

swapcase(string) Instance Public methods

tidy_bytes

tidy_bytes(string, force = false) Instance Public methods Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent resulting in a valid UTF-8 string. Passing true will forcibly tidy all bytes, assuming that the string's encoding is entirely CP1252 or ISO-8859-1.

unpack_graphemes

unpack_graphemes(string) Instance Public methods Unpack the string at grapheme boundaries. Returns a list of character lists. Unicode.unpack_graphemes('à¤à¥à¤·à¤¿') # => [[2325, 2381], [2359], [2367]] Unicode.unpack_graphemes('Café') # => [[67], [97], [102], [233]]

upcase

upcase(string) Instance Public methods

proxy_class

proxy_class() Class Public methods Returns the current proxy class.

proxy_class=

proxy_class=(klass) Class Public methods The proxy class returned when calling mb_chars. You can use this accessor to configure your own proxy class so you can support other encodings. See the ActiveSupport::Multibyte::Chars implementation for an example how to do this. ActiveSupport::Multibyte.proxy_class = CharsForUTF32

new

new(name, start, ending, transaction_id, payload) Class Public methods

<<

<<(event) Instance Public methods