summaryrefslogtreecommitdiff
path: root/enc/unicode/case-folding.rb
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 04:24:55 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 04:24:55 +0000
commit0e6f8b166d6155503bf490a9853c0f0c2fbd135b (patch)
treedeab446e920848666726f657fb0cbd4924a0b068 /enc/unicode/case-folding.rb
parentc2355aefc99a03b8f42d2fca44c08983bdbdd087 (diff)
* enc/unicode/case-folding.rb, casefold.h: Removing data for idempotent
titlecasing. * enc/unicode.c: Adjust code to data removal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode/case-folding.rb')
-rwxr-xr-xenc/unicode/case-folding.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index cade542385..d3738be4e8 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -241,12 +241,12 @@ class CaseMapping
specials_index = nil
specials = []
unless item.upper == item.title
- specials << item.title
- flags += '|ST'
if item.code == item.title
flags += '|IT'
+ else
+ flags += '|ST'
+ specials << item.title
end
-
end
unless item.lower.nil? or item.lower==from or item.lower==to
specials << item.lower