mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for euc-jp
[ruby-dev:29344] * ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5f0ce0ab83
commit
dd0b3efe48
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
Wed Sep 06 12:05:19 2006 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for euc-jp
|
||||
[ruby-dev:29344]
|
||||
|
||||
* ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]
|
||||
|
||||
Tue Sep 5 06:47:22 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* time.c (time_to_s): variable declaration after an execution
|
||||
|
|
|
@ -63,8 +63,8 @@ module Kconv
|
|||
RegexpEucjp = /\A(?:
|
||||
[\x00-\x7f] |
|
||||
\x8e [\xa1-\xdf] |
|
||||
\x8f [\xa1-\xdf] [\xa1-\xfe] |
|
||||
[\xa1-\xdf] [\xa1-\xfe]
|
||||
\x8f [\xa1-\xfe] [\xa1-\xfe] |
|
||||
[\xa1-\xfe] [\xa1-\xfe]
|
||||
)*\z/nx
|
||||
|
||||
# Regexp of UTF-8 string (private constant)
|
||||
|
@ -156,7 +156,7 @@ module Kconv
|
|||
# convert halfwidth katakana to fullwidth katakana.
|
||||
# If you don't want it, use NKF.nkf('-exm0', str).
|
||||
def toeuc(str)
|
||||
::NKF::nkf('-em0', str)
|
||||
::NKF::nkf('-em', str)
|
||||
end
|
||||
module_function :toeuc
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue