Module: ICU

Defined in:
lib/ffi-icu.rb,
lib/ffi-icu/lib.rb,
lib/ffi-icu/uchar.rb,
lib/ffi-icu/chardet.rb,
lib/ffi-icu/version.rb,
lib/ffi-icu/collation.rb,
lib/ffi-icu/normalization.rb,
lib/ffi-icu/break_iterator.rb,
lib/ffi-icu/transliteration.rb

Defined Under Namespace

Modules: CharDet, Collation, Lib, Normalization, Transliteration Classes: BreakIterator, BufferOverflowError, Error, UCharPointer

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.platformObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/ffi-icu.rb', line 5

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

.ruby19?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/ffi-icu.rb', line 20

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