Sha256: bdf53013211594ebb792b1f0816820064fa369c6a31a37d81c9a3e96beafc197

Contents?: true

Size: 513 Bytes

Versions: 39

Compression:

Stored size: 513 Bytes

Contents

#! /usr/bin/env ruby
# charactor sets extraction from download file from
# http://www.iana.org/assignments/character-sets
# as character-sets

class CharacterSets
  def self.get_list
    list = Array.new
    open('character-sets') do |file|
      while line = file.gets
        if /^((Name:)|(Alias:)) (\S+)/ =~ line
          list << $4 unless $4 == "None"
        end
      end
    end
    return list
  end
end

open('charset.lst','w') do |f|
  CharacterSets.get_list.each do |line|
    f.puts(line)
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
openehr-1.2.999999 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.99999 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.9999 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.999 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.99 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.16 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.15 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.14 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.13 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.12 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.11 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.10 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.9 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.8 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.7 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.6 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.5 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.4 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.3 lib/openehr/rm/data_types/charset_extract.rb
openehr-1.2.2 lib/openehr/rm/data_types/charset_extract.rb