utf8proc

diff ruby/utf8proc_native.c @ 3:4ee0d5f54af1

Version 1.0

- added the LUMP option, which lumps certain characters together (see lump.txt) (also used for the PostgreSQL "unifold" function)
- added the STRIPMARK option, which strips marking characters (or marks of composed characters)
- deprecated ruby method String#char_ary in favour of String#utf8chars
author jbe
date Sun Sep 17 12:00:00 2006 +0200 (2006-09-17)
parents aaad485d5335
children c18366878af9
line diff
     1.1 --- a/ruby/utf8proc_native.c	Fri Aug 04 12:00:00 2006 +0200
     1.2 +++ b/ruby/utf8proc_native.c	Sun Sep 17 12:00:00 2006 +0200
     1.3 @@ -33,8 +33,8 @@
     1.4  
     1.5  /*
     1.6   *  File name:    ruby/utf8proc_native.c
     1.7 - *  Version:      0.3
     1.8 - *  Last changed: 2006-08-04
     1.9 + *  Version:      1.0
    1.10 + *  Last changed: 2006-09-17
    1.11   *
    1.12   *  Description:
    1.13   *  Native part of the ruby wrapper for libutf8proc.
    1.14 @@ -65,6 +65,7 @@
    1.15      case UTF8PROC_ERROR_NOMEM:
    1.16      excpt_class = rb_eNoMemError; break;
    1.17      case UTF8PROC_ERROR_OVERFLOW:
    1.18 +    case UTF8PROC_ERROR_INVALIDOPTS:
    1.19      excpt_class = rb_eArgError; break;
    1.20      case UTF8PROC_ERROR_INVALIDUTF8:
    1.21      excpt_class = utf8proc_ruby_eInvalidUtf8Error; break;
    1.22 @@ -157,6 +158,8 @@
    1.23    register_utf8proc_option("stripcc",   UTF8PROC_STRIPCC);
    1.24    register_utf8proc_option("casefold",  UTF8PROC_CASEFOLD);
    1.25    register_utf8proc_option("charbound", UTF8PROC_CHARBOUND);
    1.26 +  register_utf8proc_option("lump",      UTF8PROC_LUMP);
    1.27 +  register_utf8proc_option("stripmark", UTF8PROC_STRIPMARK);
    1.28    OBJ_FREEZE(utf8proc_ruby_options);
    1.29    rb_define_const(utf8proc_ruby_module, "Options", utf8proc_ruby_options);
    1.30  }

Impressum / About Us