instance method tidy_byte

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v4.0.13 Private

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

tidy_byte(byte)

No documentation comment.

Parameters

byte req
Source
# File activesupport/lib/active_support/multibyte/unicode.rb, line 376
      def tidy_byte(byte)
        if byte < 160
          [database.cp1252[byte] || byte].pack("U").unpack("C*")
        elsif byte < 192
          [194, byte]
        else
          [195, byte - 64]
        end
      end

Defined in activesupport/lib/active_support/multibyte/unicode.rb line 376 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Multibyte::Unicode

Type at least 2 characters to search.

↑↓ navigate · open · esc close