aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte/utils.rb
Commit message (Collapse)AuthorAgeFilesLines
* Improve performance of multibyte utils.James Golick2010-03-161-1/+1
| | | | | | | Switch from using String#match to using String#=~. There's no need to generate a MatchData for each iteration since we're not using it. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Improve performance of Multibyte::Utils.Manfred Stienstra2009-11-041-7/+6
| | | | | | Replace explicit for-loops by faster enumeration methods. [#3158 state:committed]
* Use Encoding.default_external, not _internalJeremy Kemper2009-09-131-2/+2
|
* Remove redundant checks for valid character regexp in ↵Beau Harrington2009-09-101-2/+2
| | | | | | | | ActiveSupport::Multibyte#clean and #verify. [#3181 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add verify and clean methods to ActiveSupport::Multibyte.Michael Koziarski2009-09-041-0/+61
When accepting character input from outside of your application you can't blindly trust that all strings are properly encoded. With these methods you can check incoming strings and clean them up if necessary. Signed-off-by: Michael Koziarski <michael@koziarski.com> Conflicts: activesupport/lib/active_support/multibyte.rb