Class: String

Inherits:
Object show all
Includes:
LevenshteinDistance, ODDB::Util::IsoLatin1
Defined in:
ext/export/test/test_oddbdat.rb,
src/util/iso-latin1.rb,
src/util/levenshtein_distance.rb

Overview

This definition is called in TestMCMTable

Direct Known Subclasses

ODDB::Ean13

Constant Summary

Constants included from ODDB::Util::IsoLatin1

DOWNCASE_PAIRS, DOWNCASE_PTRN

Instance Method Summary (collapse)

Methods included from LevenshteinDistance

#ld, #ld_min

Methods included from ODDB::Util::IsoLatin1

#locale_downcase!

Instance Method Details

- (Object) downcase Also known as: _downcase



49
50
51
52
53
54
55
# File 'src/util/iso-latin1.rb', line 49

def downcase
  res = _downcase
  if DOWNCASE_PTRN.match(res)
    res.locale_downcase!
  end
  res
end

- (Object) downcase! Also known as: _downcase!



56
57
58
59
# File 'src/util/iso-latin1.rb', line 56

def downcase!
  res = _downcase!
  locale_downcase! || res
end

- (Object) src



20
21
22
# File 'ext/export/test/test_oddbdat.rb', line 20

def src
  self + ".src"
end