filename

filename() Class Public methods Returns the filename for the data file for this version.

dirname

dirname() Class Public methods Returns the directory in which the data files are stored.

swapcase_mapping

swapcase_mapping() Instance Public methods

new

new() Class Public methods Initializing Codepoint object with default values

upcase

upcase() Instance Public methods Converts characters in the string to uppercase. 'Laurent, où sont les tests ?'.mb_chars.upcase.to_s # => "LAURENT, Oà SONT LES TESTS ?"

titleize

titleize() Instance Public methods Capitalizes the first letter of every word, when possible. "ÃL QUE SE ENTERÃ".mb_chars.titleize # => "Ãl Que Se Enteró" "æ¥æ¬èª".mb_chars.titleize # => "æ¥æ¬èª" titlecase

titlecase

titlecase() Instance Public methods Alias for: titleize

tidy_bytes

tidy_bytes(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.

swapcase

swapcase() Instance Public methods Converts characters in the string to the opposite case. 'El Cañón".mb_chars.swapcase.to_s # => "eL cAÃÃN"

split

split(*args) Instance Public methods Works just like String#split, with the exception that the items in the resulting list are Chars instances instead of String. This makes chaining methods easier. 'Café périferôl'.mb_chars.split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÃL"]