From b8788417f0fcf25a7982d1e52ef73f8b277d97f4 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 6 Nov 2014 15:00:17 +0000 Subject: [PATCH] normalize.rb: trivial optimizations * lib/unicode_normalize/normalize.rb (nfc_one, normalize): trivial optimizations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/unicode_normalize/normalize.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/unicode_normalize/normalize.rb b/lib/unicode_normalize/normalize.rb index 1e8fcd873f..bc8831c6b7 100644 --- a/lib/unicode_normalize/normalize.rb +++ b/lib/unicode_normalize/normalize.rb @@ -106,7 +106,7 @@ module UnicodeNormalize string end - def self.nfc_one (string) + def self.nfc_one(string) nfd_string = nfd_one string start = nfd_string[0] last_class = CLASS_TABLE[start]-1 @@ -116,7 +116,7 @@ module UnicodeNormalize if last_class