Sha256: cc9212a4676908583e219455ac7700245712bd49624ae4ce5bb267014332aa87
Contents?: true
Size: 735 Bytes
Versions: 3
Compression:
Stored size: 735 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 /bsd/ :bsd 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/lib/util" require "ffi-icu/uchar" require "ffi-icu/chardet" require "ffi-icu/collation" require "ffi-icu/locale" require "ffi-icu/transliteration" require "ffi-icu/normalization" require "ffi-icu/break_iterator" require "ffi-icu/number_formatting"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-icu-0.1.6 | lib/ffi-icu.rb |
ffi-icu-0.1.5 | lib/ffi-icu.rb |
ffi-icu-0.1.4 | lib/ffi-icu.rb |