module Kconv
Kanji Converter for Ruby.
Constants
Public Class Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 66
def self.guess: (String str) -> Encoding
Guess input encoding by NKF.guess
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 76
def self.iseuc: (String str) -> bool
Returns whether input encoding is EUC-JP or not.
Note donβt expect this return value is MatchData.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 84
def self.isjis: (String str) -> bool
Returns whether input encoding is ISO-2022-JP or not.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 92
def self.issjis: (String str) -> bool
Returns whether input encoding is Shift_JIS or not.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 100
def self.isutf8: (String str) -> bool
Returns whether input encoding is UTF-8 or not.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 109
def self.kconv: (String str, Encoding? out_code, ?Encoding? in_code) -> String
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 117
def self.toeuc: (String str) -> String
Convert str to EUC-JP
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 125
def self.tojis: (String str) -> String
Convert str to ISO-2022-JP
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 133
def self.tolocale: (String str) -> String
Convert self to locale encoding
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 141
def self.tosjis: (String str) -> String
Convert str to Shift_JIS
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 149
def self.toutf16: (String str) -> String
Convert str to UTF-16
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/kconv/0/kconv.rbs, line 157
def self.toutf32: (String str) -> String
Convert str to UTF-32