instance method
tidy_byte
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v4.0.13 PrivateSignature
tidy_byte(byte)
No documentation comment.
Parameters
-
bytereq
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