From a03abdd816f21abba7bdee191fbcae552b6aa320 Mon Sep 17 00:00:00 2001 From: eto Date: Tue, 11 Mar 2003 10:42:35 +0000 Subject: [PATCH] add to_euc, to_sjis --- doc/index.html | 4 ++++ src/chise.rb | 5 +++++ 2 files changed, 9 insertions(+) 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) -- 1.7.10.4