Sha256: dc8015a58e7b9ff286f62378a780a97bdd605acc292f66cd69472bad91b3d26a

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

require "rbconfig"
require "ffi"

module ICU
  def self.platform
    os = RbConfig::CONFIG["host_os"]

    case os
    when /darwin/
      :osx
    when /linux/
      :linux
    when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
      :windows
    else
      os
    end
  end

  def self.ruby19?
    RUBY_VERSION >= '1.9'
  end
end

unless ICU.ruby19?
  require 'jcode'
  $KCODE = 'u'
end

require "ffi-icu/core_ext/string"
require "ffi-icu/lib"
require "ffi-icu/uchar"
require "ffi-icu/chardet"
require "ffi-icu/collation"
require "ffi-icu/transliteration"
require "ffi-icu/normalization"
require "ffi-icu/break_iterator"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-icu-0.0.7 lib/ffi-icu.rb
ffi-icu-0.0.6 lib/ffi-icu.rb