From: eto Date: Tue, 11 Mar 2003 10:42:35 +0000 (+0000) Subject: add to_euc, to_sjis X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a03abdd816f21abba7bdee191fbcae552b6aa320;p=chise%2Fruby.git add to_euc, to_sjis --- diff --git a/doc/index.html b/doc/index.html index aff6243..84f3424 100755 --- a/doc/index.html +++ b/doc/index.html @@ -47,6 +47,10 @@ Rubyへ移植することを試みたモジュールである。

■CVS

CVS access +


+

■libchise version

+

libchiseを使用したversionを作成中です。現在はプレアルファ版です。
+rbchise-20030309.tar.bz2

diff --git a/src/chise.rb b/src/chise.rb index cb547a5..8d302af 100755 --- a/src/chise.rb +++ b/src/chise.rb @@ -61,6 +61,11 @@ class String #================================================================== def inspect_all() map_char {|ch| ch.char.inspect_all } end def inspect_x() map_char {|ch| ch.char.inspect_x } end + def to_euc() map_char {|ch| ch.char.to_euc } end + def map_euc() map_char {|ch| ch.char.map_euc } end + def to_sjis() map_char {|ch| ch.char.to_sjis } end + def map_sjis() map_char {|ch| ch.char.map_sjis } end + def decompose() map_char {|ch| ch.char.decompose } end def decompose!() self.replace(self.decompose); self; end def decompose_all_nu(level=nil)