reverse

reverse() Instance Public methods Reverses all characters in the string. 'Café'.mb_chars.reverse.to_s # => 'éfaC'

slice!

slice!(*args) Instance Public methods Works like like String#slice!, but returns an instance of Chars, or nil if the string was not modified.

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"]

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"

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.

titlecase

titlecase() Instance Public methods Alias for: titleize

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

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 ?"

new

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

swapcase_mapping

swapcase_mapping() Instance Public methods