Changeset 22796 for branches/version-2_12-dev/data/class/SC_MobileEmoji.php
- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_MobileEmoji.php
r22567 r22796 31 31 * 携帯端末の絵文字を扱うクラス 32 32 */ 33 class SC_MobileEmoji 34 { 33 class SC_MobileEmoji { 35 34 /** 36 35 * 絵文字タグを各キャリア用の文字コードに変換する … … 40 39 * @return string 出力 41 40 */ 42 static function handler($buffer) 43 { 41 static function handler($buffer) { 44 42 $replace_callback = create_function('$matches', 'return SC_MobileEmoji_Ex::indexToCode($matches[1]);'); 45 43 return preg_replace_callback('/\[emoji:(e?\d+)\]/', $replace_callback, $buffer); … … 52 50 * @return string 絵文字を表す Shift JIS の文字列を返す。 53 51 */ 54 function indexToCode($index) 55 { 52 function indexToCode($index) { 56 53 $carrier = SC_MobileUserAgent_Ex::getCarrier(); 57 54 if ($carrier === false) {
Note: See TracChangeset
for help on using the changeset viewer.
