class Suika::CharDef
@!visibility private
Constants
Public Class Methods
char_category(ch)
click to toggle source
@!visibility private
# File lib/suika/char_def.rb, line 16 def self.char_category(ch) CHAR_CATEGORY[char_type(ch)] end
char_type(ch)
click to toggle source
@!visibility private
# File lib/suika/char_def.rb, line 7 def self.char_type(ch) ch_code = ch.unpack1('U*') ch_type = CHAR_TYPES.find do |ct| Object.const_get("::Suika::CharDef::#{ct}").any? { |r| r.include?(ch_code) } end ch_type || 'DEFAULT' end