Class | Jpmobile::Filter::Emoji::Inner |
In: |
lib/jpmobile/filter.rb
|
Parent: | Base |
絵文字Inner
# File lib/jpmobile/filter.rb, line 152 152: def to_external(str) 153: # DoCoMo UTF-8絵文字バイナリ を DoCoMo Unicode絵文字実体参照 に置換 154: str.gsub(DOCOMO_EMOJI_UTF8_REGEXP) do |match| 155: "&#x%04x;" % match.unpack('U').first 156: end 157: end