Method: CBin::Trans::Helper#trans_zh_cn_str
- Defined in:
- lib/cocoapods-lhj-bin/helpers/trans_helper.rb
#trans_zh_cn_str(input) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/cocoapods-lhj-bin/helpers/trans_helper.rb', line 30 def trans_zh_cn_str(input) @trans_map_invert ||= load_trans_map.invert out = [] input.each_char do |c| out << (@trans_map_invert[c] || c) end out.join('') end |