}
function ucCallback($matches){
- global $wikiUpperChars;
- return strtr( $matches[1] , $wikiUpperChars );
+ list( $wikiUpperChars ) = self::getCaseMaps();
+ return strtr( $matches[1], $wikiUpperChars );
}
function lcCallback($matches){
- global $wikiLowerChars;
- return strtr( $matches[1] , $wikiLowerChars );
+ list( , $wikiLowerChars ) = self::getCaseMaps();
+ return strtr( $matches[1], $wikiLowerChars );
}
function ucwordsCallbackMB($matches){
}
function ucwordsCallbackWiki($matches){
- global $wikiUpperChars;
- return strtr( $matches[0] , $wikiUpperChars );
+ list( $wikiUpperChars ) = self::getCaseMaps();
+ return strtr( $matches[0], $wikiUpperChars );
}
function ucfirst( $str ) {
}
function ucwords($str) {
- global $wikiUpperChars;
-
if ( self::isMultibyte( $str ) ) {
$str = self::lc($str);
# capitalize words at word breaks
function ucwordbreaks($str){
- global $wikiUpperChars;
-
if (self::isMultibyte( $str ) ) {
$str = self::lc($str);