Sha256: 96e574b93d625232a644970aa799b7f5682be9c3671929c3cd91f68d4734618c
Contents?: true
Size: 785 Bytes
Versions: 41
Compression:
Stored size: 785 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Resources module Properties class DerivedCorePropertiesImporter < PropertyImporter DATA_FILE = 'ucd/DerivedCoreProperties.txt' requirement :unicode, Versions.unicode_version, [DATA_FILE] output_path 'unicode_data/properties' ruby_engine :mri private def source_path requirements[:unicode].source_path_for(DATA_FILE) end def load super do |data, ret| code_points = expand_range(data[0]) property_name = format_property_value(data[1]) ret[property_name][nil] += code_points end end end end end end
Version data entries
41 entries across 41 versions & 2 rubygems