diff options
author | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:02:14 -0300 |
---|---|---|
committer | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:02:14 -0300 |
commit | 51648a6fee31c9642d3ce8899a1c718e1604f4bc (patch) | |
tree | b36838b613ed878671d01031e9ef382d1613a098 /activesupport/lib/active_support/multibyte.rb | |
parent | 9ea34ad3875243b9dd57a7fbd9ff6fa9c55872ac (diff) | |
download | rails-51648a6fee31c9642d3ce8899a1c718e1604f4bc.tar.gz rails-51648a6fee31c9642d3ce8899a1c718e1604f4bc.tar.bz2 rails-51648a6fee31c9642d3ce8899a1c718e1604f4bc.zip |
Remove multibyte utils
This is neither a public API, nor used internally, so let's remove it.
Diffstat (limited to 'activesupport/lib/active_support/multibyte.rb')
-rw-r--r-- | activesupport/lib/active_support/multibyte.rb | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/activesupport/lib/active_support/multibyte.rb b/activesupport/lib/active_support/multibyte.rb index 57e8e24bf4..cabe073616 100644 --- a/activesupport/lib/active_support/multibyte.rb +++ b/activesupport/lib/active_support/multibyte.rb @@ -21,24 +21,5 @@ module ActiveSupport #:nodoc: def self.proxy_class @proxy_class ||= ActiveSupport::Multibyte::Chars end - - # Regular expressions that describe valid byte sequences for a character - VALID_CHARACTER = { - # Borrowed from the Kconv library by Shinji KONO - (also as seen on the W3C site) - 'UTF-8' => /\A(?: - [\x00-\x7f] | - [\xc2-\xdf] [\x80-\xbf] | - \xe0 [\xa0-\xbf] [\x80-\xbf] | - [\xe1-\xef] [\x80-\xbf] [\x80-\xbf] | - \xf0 [\x90-\xbf] [\x80-\xbf] [\x80-\xbf] | - [\xf1-\xf3] [\x80-\xbf] [\x80-\xbf] [\x80-\xbf] | - \xf4 [\x80-\x8f] [\x80-\xbf] [\x80-\xbf])\z /xn, - # Quick check for valid Shift-JIS characters, disregards the odd-even pairing - 'Shift_JIS' => /\A(?: - [\x00-\x7e\xa1-\xdf] | - [\x81-\x9f\xe0-\xef] [\x40-\x7e\x80-\x9e\x9f-\xfc])\z /xn - } end -end - -require 'active_support/multibyte/utils'
\ No newline at end of file +end
\ No newline at end of file |