Module: ICU

Defined in:
lib/ffi-icu.rb,
lib/ffi-icu/lib.rb,
lib/ffi-icu/uchar.rb,
lib/ffi-icu/locale.rb,
lib/ffi-icu/chardet.rb,
lib/ffi-icu/version.rb,
lib/ffi-icu/lib/util.rb,
lib/ffi-icu/collation.rb,
lib/ffi-icu/normalizer.rb,
lib/ffi-icu/normalization.rb,
lib/ffi-icu/break_iterator.rb,
lib/ffi-icu/time_formatting.rb,
lib/ffi-icu/transliteration.rb,
lib/ffi-icu/number_formatting.rb

Defined Under Namespace

Modules: CharDet, Collation, Lib, Normalization, NumberFormatting, TimeFormatting, Transliteration Classes: BreakIterator, BufferOverflowError, Error, Locale, Normalizer, UCharPointer

Constant Summary collapse

VERSION =
"0.4.3"

Class Method Summary collapse

Class Method Details

.platformObject



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

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