summaryrefslogtreecommitdiff
path: root/tool/enc-case-folding.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/enc-case-folding.rb')
-rwxr-xr-xtool/enc-case-folding.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/enc-case-folding.rb b/tool/enc-case-folding.rb
index 76c6b5c48b..82fec7b625 100755
--- a/tool/enc-case-folding.rb
+++ b/tool/enc-case-folding.rb
@@ -61,7 +61,7 @@ class CaseFolding
@version = nil
turkic = []
- IO.foreach(filename, mode: "rb") do |line|
+ File.foreach(filename, mode: "rb") do |line|
@version ||= line[/-([0-9.]+).txt/, 1]
next unless res = pattern.match(line)
ch_from = res[1].to_i(16)
@@ -230,7 +230,7 @@ class CaseMapping
@specials = []
@specials_length = 0
@version = nil
- IO.foreach(File.join(mapping_directory, 'UnicodeData.txt'), mode: "rb") do |line|
+ File.foreach(File.join(mapping_directory, 'UnicodeData.txt'), mode: "rb") do |line|
next if line =~ /^</
code, _, _, _, _, _, _, _, _, _, _, _, upper, lower, title = line.chomp.split ';'
unless upper and lower and title and (upper+lower+title)==''
@@ -239,7 +239,7 @@ class CaseMapping
end
@filename = File.join(mapping_directory, 'SpecialCasing.txt')
- IO.foreach(@filename, mode: "rb") do |line|
+ File.foreach(@filename, mode: "rb") do |line|
@version ||= line[/-([0-9.]+).txt/, 1]
line.chomp!
line, comment = line.split(/ *#/)