Educate Ruby 1.8.7 about the String#chr method.
ValidTrailingCharRx | = | /.$/u |
empty? | -> | nil_or_empty? |
Safely truncate the string to the specified number of bytes. If a multibyte char gets split, the dangling fragment is removed.
Safely truncate the string to the specified number of bytes. If a multibyte char gets split, the dangling fragment is removed.