method

create_composition_map

rails latest stable - Class: ActiveSupport::Multibyte::Handlers::UnicodeTableGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

create_composition_map()
public

No documentation available.

# File activesupport/lib/active_support/multibyte/generators/generate_tables.rb, line 98
    def create_composition_map
      @ucd.codepoints.each do |_, cp|
        if !cp.nil? and cp.combining_class == 0 and cp.decomp_type.nil? and !cp.decomp_mapping.nil? and cp.decomp_mapping.length == 2 and @ucd[cp.decomp_mapping[0]].combining_class == 0 and [email protected]_exclusion.include?(cp.code)
          @ucd.composition_map[cp.decomp_mapping[0]] ||= {}
          @ucd.composition_map[cp.decomp_mapping[0]][cp.decomp_mapping[1]] = cp.code
        end
      end
    end