Sha256: ebb81aec1c6958a6cccfdaab01f0cae4750d9a8b6fc0efd760793f4c520ca94d
Contents?: true
Size: 797 Bytes
Versions: 38
Compression:
Stored size: 797 Bytes
Contents
# -*- coding: utf-8 -*- # =iPhone module Jpmobile::Mobile # ==iPhone class Iphone < SmartPhone # 対応するUser-Agentの正規表現 USER_AGENT_REGEXP = /iPhone/ # 文字コード変換 def to_internal(str) # 絵文字を数値参照に変換 str = Jpmobile::Emoticon.external_to_unicodecr_softbank(Jpmobile::Util.utf8(str)) # 数値参照を UTF-8 に変換 Jpmobile::Emoticon.unicodecr_to_utf8(str) end def to_external(str, content_type, charset) # UTF-8を数値参照に str = Jpmobile::Emoticon.utf8_to_unicodecr(str) # 数値参照を絵文字コードに変換 str = Jpmobile::Emoticon.unicodecr_to_external(str, Jpmobile::Emoticon::CONVERSION_TABLE_TO_SOFTBANK, false) [str, charset] end end end
Version data entries
38 entries across 30 versions & 1 rubygems