method

parse_grapheme_break_property

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.

parse_grapheme_break_property(line)
public

No documentation available.

# File activesupport/lib/active_support/multibyte/generators/generate_tables.rb, line 73
    def parse_grapheme_break_property(line)
      if line =~ /^([0-9A-F\.]+)\s*;\s*([\w]+)\s*#/
        type = $2.downcase.intern
        @ucd.boundary[type] ||= []
        if $1.include? '..'
          parts = $1.split '..'
          @ucd.boundary[type] << (parts[0].hex..parts[1].hex)
        else
          @ucd.boundary[type] << $1.hex
        end
      end
    end