diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-10-03 23:45:32 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-10-03 23:45:32 +0000 |
commit | f238d495b70a264abdb864fe8107e02766b285b4 (patch) | |
tree | cfe1f5df118b46d1426cfc87326c26c8fbe63a85 /activesupport/lib/active_support/multibyte.rb | |
parent | 8cb0079feabe011b7edd1c65114efdb7047a02ec (diff) | |
download | rails-f238d495b70a264abdb864fe8107e02766b285b4.tar.gz rails-f238d495b70a264abdb864fe8107e02766b285b4.tar.bz2 rails-f238d495b70a264abdb864fe8107e02766b285b4.zip |
Add ActiveSupport::Multibyte. Provides String#chars which lets you deal with strings as a sequence of chars, not of bytes. Closes #6242 [Julian Tarkhanov, Manfred Stienstra & Jan Behrens]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/multibyte.rb')
-rw-r--r-- | activesupport/lib/active_support/multibyte.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/multibyte.rb b/activesupport/lib/active_support/multibyte.rb new file mode 100644 index 0000000000..5e518b65f0 --- /dev/null +++ b/activesupport/lib/active_support/multibyte.rb @@ -0,0 +1,7 @@ +module ActiveSupport::Multibyte + DEFAULT_NORMALIZATION_FORM = :kc + NORMALIZATIONS_FORMS = [:c, :kc, :d, :kd] + UNICODE_VERSION = '5.0.0' +end + +require 'active_support/multibyte/chars'
\ No newline at end of file |