@@ -40,6 +40,9 @@ |
||
40 | 40 | return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $data |
|
45 | + */ |
|
43 | 46 | static private function uniChrCode($data) { |
44 | 47 | list(, $ord) = unpack('N', mb_convert_encoding($data, 'UCS-4BE', 'UTF-8')); |
45 | 48 | return $ord; |
@@ -8,9 +8,9 @@ |
||
8 | 8 | |
9 | 9 | static public function covertEmojiToName($data) { |
10 | 10 | $data = emoji_docomo_to_unified($data); # DoCoMo devices |
11 | - $data = emoji_kddi_to_unified($data); # KDDI & Au devices |
|
12 | - $data = emoji_softbank_to_unified($data); # Softbank & (iPhone) Apple devices |
|
13 | - $data = emoji_google_to_unified($data); # Google Android devices |
|
11 | + $data = emoji_kddi_to_unified($data); # KDDI & Au devices |
|
12 | + $data = emoji_softbank_to_unified($data); # Softbank & (iPhone) Apple devices |
|
13 | + $data = emoji_google_to_unified($data); # Google Android devices |
|
14 | 14 | $data = emoji_unified_to_name($data); |
15 | 15 | $data = emoji_unified_to_key($data); |
16 | 16 | return $data; |
@@ -6,23 +6,23 @@ |
||
6 | 6 | |
7 | 7 | class LaravelEmojiServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | - /** |
|
10 | - * Bootstrap the application services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot() |
|
15 | - { |
|
9 | + /** |
|
10 | + * Bootstrap the application services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot() |
|
15 | + { |
|
16 | 16 | // |
17 | - } |
|
17 | + } |
|
18 | 18 | |
19 | - /** |
|
20 | - * Register the application services. |
|
21 | - * |
|
22 | - * @return void |
|
23 | - */ |
|
24 | - public function register() |
|
25 | - { |
|
26 | - // |
|
27 | - } |
|
19 | + /** |
|
20 | + * Register the application services. |
|
21 | + * |
|
22 | + * @return void |
|
23 | + */ |
|
24 | + public function register() |
|
25 | + { |
|
26 | + // |
|
27 | + } |
|
28 | 28 | } |