Holds data about a codepoint in the Unicode database.

Methods

Attributes

[RW] code
[RW] combining_class
[RW] decomp_mapping
[RW] decomp_type
[RW] lowercase_mapping
[RW] uppercase_mapping

Class Public methods

new()

Initializing Codepoint object with default values

📝 Source code
# File activesupport/lib/active_support/multibyte/unicode.rb, line 301
        def initialize
          @combining_class = 0
          @uppercase_mapping = 0
          @lowercase_mapping = 0
        end
🔎 See on GitHub

Instance Public methods

swapcase_mapping()

📝 Source code
# File activesupport/lib/active_support/multibyte/unicode.rb, line 307
        def swapcase_mapping
          uppercase_mapping > 0 ? uppercase_mapping : lowercase_mapping
        end
🔎 See on GitHub