Sha256: 37410c5becbc463649f28f54a6a1cc854dd2892a082364cbd760f9f2e9170e5f

Contents?: true

Size: 1.23 KB

Versions: 19

Compression:

Stored size: 1.23 KB

Contents

# encoding: utf-8

require 'active_support/multibyte/chars'
require 'active_support/multibyte/exceptions'
require 'active_support/multibyte/unicode_database'

module ActiveSupport #:nodoc:
  module Multibyte
    # A list of all available normalization forms. See http://www.unicode.org/reports/tr15/tr15-29.html for more
    # information about normalization.
    NORMALIZATION_FORMS = [:c, :kc, :d, :kd]

    # The Unicode version that is supported by the implementation
    UNICODE_VERSION = '5.1.0'

    # The default normalization used for operations that require normalization. It can be set to any of the
    # normalizations in NORMALIZATION_FORMS.
    #
    # Example:
    #   ActiveSupport::Multibyte.default_normalization_form = :c
    mattr_accessor :default_normalization_form
    self.default_normalization_form = :kc

    # The proxy class returned when calling mb_chars. You can use this accessor to configure your own proxy
    # class so you can support other encodings. See the ActiveSupport::Multibyte::Chars implementation for
    # an example how to do this.
    #
    # Example:
    #   ActiveSupport::Multibyte.proxy_class = CharsForUTF32
    mattr_accessor :proxy_class
    self.proxy_class = ActiveSupport::Multibyte::Chars
  end
end

Version data entries

19 entries across 16 versions & 10 rubygems

Version Path
p8-castronaut-0.6.1.1 vendor/activesupport/lib/active_support/multibyte.rb
relevance-castronaut-0.6.0 vendor/activesupport/lib/active_support/multibyte.rb
relevance-castronaut-0.6.1 vendor/activesupport/lib/active_support/multibyte.rb
relevance-castronaut-0.7.4 vendor/activesupport/lib/active_support/multibyte.rb
relevance-castronaut-0.7.5 vendor/activesupport/lib/active_support/multibyte.rb
nbudin-castronaut-0.7.5 vendor/activesupport/lib/active_support/multibyte.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/lib/active_support/multibyte.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/pkg/activesupport-2.3.3/lib/active_support/multibyte.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/lib/active_support/multibyte.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/pkg/activesupport-2.2.2/lib/active_support/multibyte.rb
factorylabs-castronaut-0.7.5 vendor/activesupport/lib/active_support/multibyte.rb
webroar-0.2.2 src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte.rb
activesupport-2.3.3 lib/active_support/multibyte.rb
activesupport-2.3.2 lib/active_support/multibyte.rb
activesupport-2.2.2 lib/active_support/multibyte.rb
mack-active_record-0.8.2 lib/gems/activesupport-2.2.2/lib/active_support/multibyte.rb
mack-facets-0.8.3 lib/gems/activesupport-2.2.2/lib/active_support/multibyte.rb
mack-facets-0.8.3.1 lib/gems/activesupport-2.2.2/lib/active_support/multibyte.rb
radiant-0.8.0 vendor/rails/activesupport/lib/active_support/multibyte.rb