Source for file TMStrings.class.php
Documentation is available at TMStrings.class.php
* @copyright 2009-2010 NADEO
* Misc functions for TM styled strings
* Allows to safely put any TM-formatted string into another TM-formatted string
* without conflicts (conflict example: you put a nickname in the middle of the
* sentance, the nickname has some bold characters and all the end of the
* @param string Unprotected string
* @param string Protected string
return '$<'.
$string.
'$>';
* Removes some TM styles (wide, bold and shadowed) to avoid wide words
'/\\$[hlp](.*?)(?:\\[.*?\\](.*?))?(?:\\$[hlp]|$)/ixu', '$1$2',