utf8proc

diff ruby/utf8proc.rb @ 6:d04d3a9b486e

Version 1.0.3

- Fixed a bug in the ruby library, which caused an error, when splitting an empty string at grapheme cluster boundaries (method String#utf8chars).
author jbe
date Fri Mar 16 12:00:00 2007 +0100 (2007-03-16)
parents 4ee0d5f54af1
children fcfd8c836c64
line diff
     1.1 --- a/ruby/utf8proc.rb	Tue Dec 26 12:00:00 2006 +0100
     1.2 +++ b/ruby/utf8proc.rb	Fri Mar 16 12:00:00 2007 +0100
     1.3 @@ -84,7 +84,7 @@
     1.4      def utf8nfkc!; utf8map!(:stable, :compose, :compat); end
     1.5      def utf8chars
     1.6        result = self.utf8map(:charbound).split("\377")
     1.7 -      result.shift if result.first.empty?
     1.8 +      result.shift if result.first == ""
     1.9        result
    1.10      end
    1.11      def char_ary

Impressum / About Us