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
				
			
		| 
						 | 
				
			
			@ -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