module ZhongwenTools::StringExtension
Public Instance Methods
ascii?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 41 def ascii? ZhongwenTools::Unicode.ascii?(self) end
bpmf?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 116 def bpmf? ZhongwenTools::Romanization::ZhuyinFuhao.bpmf?(self) end
capitalize()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 5 def capitalize ZhongwenTools::Caps.capitalize(self) end
from_codepoint()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 65 def from_codepoint ZhongwenTools::Unicode.from_codepoint(self) end
fullwidth?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 53 def fullwidth? ZhongwenTools::Fullwidth.fullwidth?(self) end
halfwidth?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 49 def halfwidth? ZhongwenTools::Fullwidth.halfwidth?(self) end
has_zh?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 17 def has_zh? ZhongwenTools::Zhongwen.has_zh?(self) end
has_zh_punctuation?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 21 def has_zh_punctuation? ZhongwenTools::Zhongwen.has_zh_punctuation?(self) end
mps2?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 132 def mps2? ZhongwenTools::Romanization::MPS2.mps2?(self) end
multibyte?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 45 def multibyte? ZhongwenTools::Unicode.multibyte?(self) end
py?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 108 def py? ZhongwenTools::Romanization::Pinyin.py?(self) end
pyn?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 112 def pyn? ZhongwenTools::Romanization::Pinyin.pyn?(self) end
romanization?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 136 def romanization? ZhongwenTools::Romanization.romanization?(self) end
split_romanization()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 140 def split_romanization ZhongwenTools::Romanization.split(self) end
strip_zh_punctuation()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 29 def strip_zh_punctuation ZhongwenTools::Zhongwen.strip_zh_punctuation(self) end
to_bpmf(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 79 def to_bpmf(from = nil) ZhongwenTools::Romanization::ZhuyinFuhao::to_bpmf(self, from) end
to_codepoint()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 61 def to_codepoint ZhongwenTools::Unicode.to_codepoint(self) end
to_halfwidth()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 57 def to_halfwidth ZhongwenTools::Fullwidth.to_halfwidth(self) end
to_mps2(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 104 def to_mps2(from = nil) ZhongwenTools::Romanization::MPS2::to_mps2(self, from) end
to_pinyin(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 69 def to_pinyin(from = nil) ZhongwenTools::Romanization::Pinyin::to_py(self, from) end
Also aliased as: to_py
to_pyn(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 75 def to_pyn(from = nil) ZhongwenTools::Romanization::Pinyin::to_pyn(self, from) end
to_typy(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 97 def to_typy(from = nil) ZhongwenTools::Romanization::TongyongPinyin::to_typy(self, from) end
Also aliased as: to_tongyong, to_tongyong_pinyin
to_wg(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 87 def to_wg(from = nil) ZhongwenTools::Romanization::WadeGiles::to_wg(self, from) end
Also aliased as: to_wade_giles
to_yale(from = nil)
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 93 def to_yale(from = nil) ZhongwenTools::Romanization::Yale::to_yale(self, from) end
to_zhcn()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 152 def to_zhcn ZhongwenTools::Script.to_zhs(self, :zhcn) end
to_zhhk()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 156 def to_zhhk ZhongwenTools::Script.to_zht(self, :zhhk) end
to_zhs()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 160 def to_zhs ZhongwenTools::Script.to_zhs(self, :zhs) end
to_zht()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 164 def to_zht ZhongwenTools::Script.to_zht(self, :zht) end
to_zhtw()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 168 def to_zhtw ZhongwenTools::Script.to_zht(self, :zhtw) end
typy?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 128 def typy? ZhongwenTools::Romanization::TongyongPinyin.typy?(self) end
uri_encode()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 33 def uri_encode ZhongwenTools::URI.encode(self) end
uri_escape()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 37 def uri_escape ZhongwenTools::URI.escape(self) end
wg?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 120 def wg? ZhongwenTools::Romanization::WadeGiles.wg?(self) end
yale?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 124 def yale? ZhongwenTools::Romanization::Yale.yale?(self) end
zh?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 25 def zh? ZhongwenTools::Zhongwen.zh?(self) end
zh_downcase()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 9 def zh_downcase ZhongwenTools::Caps.downcase(self) end
zh_upcase()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 13 def zh_upcase ZhongwenTools::Caps.upcase(self) end
zhs?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 144 def zhs? ZhongwenTools::Script.zhs?(self) end
zht?()
click to toggle source
# File lib/zhongwen_tools/string_extension.rb, line 148 def zht? ZhongwenTools::Script.zht?(self) end