Changeset View
Changeset View
Standalone View
Standalone View
scripts/celerity/generate_emoji.php
Context not available. | |||||
$data = array(); | $data = array(); | ||||
foreach ($emojis as $shortname => $emoji) { | foreach ($emojis as $shortname => $emoji) { | ||||
$unicode = $emoji['unicode']; | $unicode = $emoji['unicode']; | ||||
$codes = explode('-', $unicode); | $codes = @explode('-', $unicode); | ||||
$hex = ''; | $hex = ''; | ||||
foreach ($codes as $code) { | foreach ($codes as $code) { | ||||
$hex .= phutil_utf8_encode_codepoint(hexdec($code)); | $hex .= phutil_utf8_encode_codepoint(hexdec($code)); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0