Lines Matching refs:m

177      * @param   array   $m  Results of preg_replace_callback().
180 public function shortnameToAsciiCallback($m) argument
182 if ((!is_array($m)) || (!isset($m[1])) || (empty($m[1])))
184 return $m[0];
194 $shortname = $m[0];
198 return $m[0];
203 return isset($aflipped[$unicode]) ? $aflipped[$unicode] : $m[0];
208 * @param array $m Results of preg_replace_callback().
211 public function shortnameToUnicodeCallback($m) argument
213 if ((!is_array($m)) || (!isset($m[1])) || (empty($m[1]))) {
214 return $m[0];
221 $shortname = $m[1];
224 return $m[0];
235 * @param array $m Results of preg_replace_callback().
238 public function shortnameToImageCallback($m) argument
240 if ((!is_array($m)) || (!isset($m[1])) || (empty($m[1]))) {
241 return $m[0];
247 $shortname = $m[1];
251 return $m[0];
292 * @param array $m Results of preg_replace_callback().
295 public function asciiToUnicodeCallback($m) argument
297 if ((!is_array($m)) || (!isset($m[3])) || (empty($m[3])))
299 return $m[0];
306 $shortname = $m[3];
308 return $m[2].$this->convert($unicode);
313 * @param array $m Results of preg_replace_callback().
316 public function asciiToShortnameCallback($m) argument
318 if ((!is_array($m)) || (!isset($m[3])) || (empty($m[3])))
320 return $m[0];
328 $shortname = $m[3];
330 return $m[2].$shortcode_replace[$unicode];
335 * @param array $m Results of preg_replace_callback().
338 public function asciiToImageCallback($m) argument
340 if ((!is_array($m)) || (!isset($m[3])) || (empty($m[3])))
342 return $m[0];
349 $shortname = html_entity_decode($m[3]);
367 …return $m[2].'<span class="emojione emojione-'.$unicode.'" title="'.htmlspecialchars($shortname).'…
371 …return $m[2].'<img class="emojione" alt="'.$alt.'" '.$titleTag.' src="'.$this->imagePathPNG.$unico…
377 …return $m[2].'<svg class="emojione"><description>'.$alt.'</description><use xlink:href="'.$this->i…
381 …return $m[2].'<object class="emojione" data="'.$this->imagePathSVG.$unicode.'.svg'.$this->cacheBus…
387 * @param array $m Results of preg_replace_callback().
390 public function toShortCallback($m) argument
392 if ((!is_array($m)) || (!isset($m[1])) || (empty($m[1])))
394 return $m[0];
401 $unicode = $m[1];
409 $unicode = substr($m[1], 0, 4);
413 return $m[0];
423 * @param array $m Results of preg_replace_callback().
426 public function unicodeToImageCallback($m) argument
428 if ((!is_array($m)) || (!isset($m[1])) || (empty($m[1])))
430 return $m[0];
438 $unicode = $m[1];
446 $unicode = substr($m[1], 0, 4);
450 if ("\xE2\x83\xA3" === substr($m[1], 1, 3))
452 $unicode = substr($m[1], 0, 1) . "\xEF\xB8\x8F\xE2\x83\xA3";
456 return $m[0];
461 return $m[0];