From: Alexander Danilov Date: 2002-03-04T15:24:18+09:00 Subject: Re: ruby-m17n On Mon, Mar 04, 2002 at 08:03:36AM +0900, Yukihiro Matsumoto wrote: > Hi, > > In message "ruby-m17n" > on 02/03/04, Alexander Danilov writes: > > |I make patch for ruby-m17n to support my encoding(koi8-r russian). > |Now I want to test my patch, but I don't know how. > |Can someone show me an example of m17n api? > > I'm not sure what do you mean by "m17n api". > If koi8-r is a single byte encoding, checks should be: yes, koi8-r sungle bytte encoding > > * String#toupper > * String#tolower > * regex match with /i > * regex \w should match word characters > > For multibyte encodings, additional checks are: > > * String#size returns number of characters > * String#[n] returns codepoint of the nth character > * str.split(//) splits into single character strings. > * regex should match multibye strings > * printf "%10s" should occupy 10 terminal columns. > * and other string operations should be "multibyte aware". > > matz. Thanks, but how can I explain ruby that all my strings in koi8-r encoding?