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