3 require 'active_support/multibyte/chars'
4 require 'active_support/multibyte/exceptions'
5 require 'active_support/multibyte/unicode_database'
7 module ActiveSupport
#:nodoc:
9 # A list of all available normalization forms. See http://www.unicode.org/reports/tr15/tr15-29.html for more
10 # information about normalization.
11 NORMALIZATION_FORMS
= [:c, :kc, :d, :kd]
13 # The Unicode version that is supported by the implementation
14 UNICODE_VERSION
= '5.1.0'
16 # The default normalization used for operations that require normalization. It can be set to any of the
17 # normalizations in NORMALIZATION_FORMS.
20 # ActiveSupport::Multibyte.default_normalization_form = :c
21 mattr_accessor
:default_normalization_form
22 self.default_normalization_form
= :kc
24 # The proxy class returned when calling mb_chars. You can use this accessor to configure your own proxy
25 # class so you can support other encodings. See the ActiveSupport::Multibyte::Chars implementation for
26 # an example how to do this.
29 # ActiveSupport::Multibyte.proxy_class = CharsForUTF32
30 mattr_accessor
:proxy_class
31 self.proxy_class
= ActiveSupport
::Multibyte::Chars