# # Kanji Converter for Ruby. # module Kconv # # ASCII # ASCII: Encoding # # Auto-Detect # AUTO: nil # # BINARY # BINARY: Encoding # # EUC-JP # EUC: Encoding # # ISO-2022-JP # JIS: Encoding # # NOCONV # NOCONV: nil # # Shift_JIS # SJIS: Encoding # # UNKNOWN # UNKNOWN: nil # # UTF-16 # UTF16: Encoding # # UTF-32 # UTF32: Encoding # # UTF-8 # UTF8: Encoding # # Guess input encoding by NKF.guess # def self.guess: (String str) -> Encoding # # Returns whether input encoding is EUC-JP or not. # # **Note** don't expect this return value is MatchData. # def self.iseuc: (String str) -> bool # # Returns whether input encoding is ISO-2022-JP or not. # def self.isjis: (String str) -> bool # # Returns whether input encoding is Shift_JIS or not. # def self.issjis: (String str) -> bool # # Returns whether input encoding is UTF-8 or not. # def self.isutf8: (String str) -> bool # # Convert `str` to `to_enc`. `to_enc` and `from_enc` are given as constants of # Kconv or Encoding objects. # def self.kconv: (String str, Encoding? out_code, ?Encoding? in_code) -> String # # Convert `str` to EUC-JP # def self.toeuc: (String str) -> String # # Convert `str` to ISO-2022-JP # def self.tojis: (String str) -> String # # Convert `self` to locale encoding # def self.tolocale: (String str) -> String # # Convert `str` to Shift_JIS # def self.tosjis: (String str) -> String # # Convert `str` to UTF-16 # def self.toutf16: (String str) -> String # # Convert `str` to UTF-32 # def self.toutf32: (String str) -> String # # Convert `str` to UTF-8 # def self.toutf8: (String str) -> String end