Sha256: 72b01a8e7fed89f095d76d0f78d4cb00e4401ff011986696bb2222a25bb0a19b
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 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 D (NFD). # This normalization includes only Canonical Decomposition. # class NFD < NFKD class << self protected # Returns code point's Decomposition Mapping based on its Unicode data. Returns nil if the mapping has # compatibility type (it contains compatibility formatting tag). # def decomposition_mapping(unicode_data) mapping = parse_decomposition_mapping(unicode_data) mapping unless compatibility_decomposition?(mapping) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr-1.3.6 | lib/twitter_cldr/normalizers/nfd.rb |
twitter_cldr-1.3.0 | lib/twitter_cldr/normalizers/nfd.rb |
twitter_cldr-1.2.0 | lib/twitter_cldr/normalizers/nfd.rb |