Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / multibyte.rb
1 # encoding: utf-8
2
3 require 'active_support/multibyte/chars'
4 require 'active_support/multibyte/exceptions'
5 require 'active_support/multibyte/unicode_database'
6
7 module ActiveSupport #:nodoc:
8 module Multibyte
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]
12
13 # The Unicode version that is supported by the implementation
14 UNICODE_VERSION = '5.1.0'
15
16 # The default normalization used for operations that require normalization. It can be set to any of the
17 # normalizations in NORMALIZATION_FORMS.
18 #
19 # Example:
20 # ActiveSupport::Multibyte.default_normalization_form = :c
21 mattr_accessor :default_normalization_form
22 self.default_normalization_form = :kc
23
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.
27 #
28 # Example:
29 # ActiveSupport::Multibyte.proxy_class = CharsForUTF32
30 mattr_accessor :proxy_class
31 self.proxy_class = ActiveSupport::Multibyte::Chars
32 end
33 end