Method: CBin::Trans::Helper#trans_zh_hk_str

Defined in:
lib/cocoapods-lhj-bin/helpers/trans_helper.rb

#trans_zh_hk_str(input) ⇒ Object

[View source]

39
40
41
42
43
44
45
46
# File 'lib/cocoapods-lhj-bin/helpers/trans_helper.rb', line 39

def trans_zh_hk_str(input)
  @trans_map ||= load_trans_map
  out = []
  input.each_char do |c|
    out << (@trans_map[c] || c)
  end
  out.join('')
end