summaryrefslogtreecommitdiffstats
path: root/ext/nkf/lib
Commit message (Collapse)AuthorAgeFilesLines
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str.naruse2008-01-141-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: update to r1.163.naruse2008-01-111-1/+1
| | | | | | | | | * ext/nkf/nkf.c: ASCII's canonical name is US-ASCII. * ext/nkf/lib/kconv.rb (Kconv.isjis): force_encoding('BINARY'). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf.naruse2008-01-011-65/+62
| | | | | | | | | | | * ext/nkf/nkf.c: fix documents. * ext/nkf/lib/kconv.rb: fix documents. (Kconv.is*): use valid_encoding?. (Kconv.isjis): defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding.naruse2007-12-231-8/+3
| | | | | | | | | | | | | | * ext/nkf/nkf.c (Init_nkf): use rb_nkf_enc_get("ASCII"). * ext/nkf/nkf-utf8/nkf.c: Update 1.161. * ext/nkf/nkf-utf9/config.h: default output encoding is now UTF-8. * ext/nkf/lib/kconv.rb (Kconv.kconv): replace Encoding#name by Encoding#to_s. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8.c: Update nkf.c rev:1.157.naruse2007-12-221-71/+7
| | | | | | | | | | * ext/nkf/nkf.c (rb_nkf_enc_get): replicate proper based encoding. * ext/nkf/kconv.c (Kconv#kconv, to*): use self.encoding as from_enc when from_enc isn't given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: Updated.naruse2007-12-191-58/+16
| | | | | | | | | | | | | | * ext/nkf/nkf.c (rb_nkf_enc_get): added. (find encoding or replicate default encoding) * ext/nkf/nkf.c (NKF::<ENCODING>): redefine encoding constant. * ext/nkf/lib/kconv.rb (Kconv::<ENCODING>): redefined as Encoding. * ext/nkf/lib/kconv.rb: refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (tojis, tosjis, toeuc, toutf8):naruse2007-12-041-4/+4
| | | | | | | set encoding. [ruby-dev:32447] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 rev.110.naruse2006-09-151-0/+29
| | | | | | | | | | | | | | | | | | * Fix: check_bom cuts \xfe\xff\xXX\xXX of UTF-32. * Add support --ic=UTF-32. * Fix: can't guess UTF-16 and UTF-32. * Fix: can't decode beyond BMP of UTF-16LE. * ext/nkf/nkf.c (guess): Support UTF-32. * ext/nkf/lib/kconv.rb (kconv): Support UTF-32. * ext/nkf/lib/kconv.rb (to_utf32): new method. * ext/nkf/lib/kconv.rb (to_utf32): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]naruse2006-09-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for euc-jp ↵naruse2006-08-221-2/+2
| | | | | | [ruby-dev:29344] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * kconv.rb: remove default -m0 and fix document.naruse2006-06-191-16/+35
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: imported nkf 2.0.6.naruse2006-03-271-165/+237
| | | | | | | | | | | | | | | | | | | | | * Add --ic / --oc option and mapping tables. * Add fallback option. * Add --no-best-fit-chars option. * Fix some bugs. * ext/nkf/nkf.c (nkf_split_options): added for parse option string. * ext/nkf/lib/kconv.rb (Kconv.to*): add -m0. Note that Kconv.to* still imply -X. * ext/nkf/test.rb: Removed. Obsolete by test/nkf. * ext/.document: enabled documents in nkf and kconv * ext/nkf/nkf.c, ext/nkf/lib/kconv.rb: Add rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matchednobu2005-10-081-1/+1
| | | | | | | | | | | | | | substring directly. * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a. * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed change of sample/test.rb. * test/net/http/test_http.rb: removed superfluous splatting stars. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: ensure that symbol_to_option is private_class_methodnaruse2005-08-171-20/+9
| | | | | | | | and all other methods are module_function fixed: [ruby-dev:26808] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: Kconv.kconv is now alias of Kconv.convnaruse2005-08-121-56/+4
| | | | | | | * ext/nkf/lib/kconv.rb: remove nkf dependend symbols fomr SYMBOL_TO_OPTION git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: fix typo.naruse2005-07-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:naruse2005-07-051-6/+6
| | | | | | | | | imported nkf.c 1.70 (support UTF-8-MAC) * ext/nkf/lib/kconv.rb: add :utf8mac and :internalunicode git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: add Kconv::VERSIONnaruse2005-06-271-38/+12
| | | | | | | | | * ext/nkf/lib/kconv.rb (conv): can process arrayed options * ext/nkf/nkf-utf8/nkf.c: imported Revision 1.69 * ext/nkf/nkf-utf8/utf8tbl.c: imported Revision 1.9 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb: remove constantsnaruse2005-06-251-65/+202
| | | | | | | | | | | | Iconv_Shift_JIS, Uconv_EUC_JP, Iconv_UTF8 * ext/nkf/lib/kconv.rb: add module functions to Kconv conv, {eucjp, shiftjis, utf8}?, guess_as_symbol * ext/nkf/lib/kconv.rb: add instance methods to String conv, {eucjp, shiftjis, utf8}? * ext/nkf/lib/kconv.rb: add aliases Kconv.to_* and String#to_* git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (guess_old): not use NKF.guess_oldnaruse2005-01-241-1/+1
| | | | | | | but NKF.guess1. fixed: [ruby-dev:25491] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): second byte is up tonobu2004-12-281-4/+6
| | | | | | | | | | 0xfe. * ext/nkf/lib/kconv.rb (Kconv#kconv): should handle UTF8 and UTF16 properly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* follow to nkf 2.0.4naruse2004-10-291-22/+175
| | | | | | | | | | | | | | | :new constants NKF::VERSION NKF::ASCII NKF::UTF8 NKF::UTF16 NKF::UTF32 :new methods NFK.guess1 (guess) NKF.guess2 (from nkf2) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 19991029matz1999-10-291-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove marshal/gtk/kconvmatz1999-08-131-0/+58
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e