Top Level Namespace

Defined Under Namespace

Modules: Encoding, Kernel Classes: Array, BidiMirroring, CaseFolding, CollectedData, CompositionExclusions, File, Hash, LineBreak, Printer, Runner, SpecialCasing, String, UnicodeCodepoint, UnicodeData

Constant Summary collapse

UnicodeVersion =

Instance Method Summary collapse

Instance Method Details

#error(fmt, *args) ⇒ Object



25
26
27
28
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 25

def error(fmt, *args)
  $stderr.printf("%s: %s\n", File.basename($0), sprintf(fmt, *args))
  exit(1)
end

#try_compiler_option(opt, &b) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'ext/encoding/character/utf-8/extconf.rb', line 3

def try_compiler_option(opt, &b)
  checking_for "#{opt}’ option to compiler" do
    if try_compile('', opt, &b)
      $CFLAGS += " #{opt}"
      true
    else
      false
    end
  end
end