Sha256: f2ca36c458ddaa02839ec14e393eb3b17af5227519df2ee6065d36bffb9d7769

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Normalizers

    # Implements normalization of a Unicode string to Normalization Form C (NFC).
    # This normalization includes canonical decomposition followed by canonical composition.
    #
    class NFC < NFKC

      class << self

        def normalize_code_points(code_points)
          compose(TwitterCldr::Normalizers::NFD.normalize_code_points(code_points))
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twitter_cldr-1.4.1 lib/twitter_cldr/normalizers/nfc.rb
twitter_cldr-1.4.0 lib/twitter_cldr/normalizers/nfc.rb