module Bayes::CHARSET::UTF8
Constants
- BAR
- KANJI
- KATAKANA
- KCODE
- KCONV
- RE_KANJI
- RE_KATAKANA
Public Class Methods
c2u(c)
click to toggle source
# File lib/bayes.rb, line 28 def self.c2u(c) [c].pack("U") end
utf_range(a, b)
click to toggle source
# File lib/bayes.rb, line 31 def self.utf_range(a, b) "#{c2u(a)}-#{c2u(b)}" end