Go to the documentation of this file.
29 if( PHP_SAPI !=
'cli' ) {
30 die(
"Run me from the command line please.\n" );
34 require_once
'UtfNormal.php';
35 require_once
'../diff/DifferenceEngine.php';
37 dl(
'php_utfnormal.so' );
43 for( $i = 0; $i < $length; $i++ )
44 $out .= chr( mt_rand( $nullOk ? 0 : 1, $ascii ? 127 : 255 ) );
50 # We exclude a few chars that ICU would not.
51 $str = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
UTF8_REPLACEMENT, $str );
55 # UnicodeString constructor fails if the string ends with a head byte.
56 # Add a junk char at the end, we'll strip it off
61 $ota = explode(
"\n", str_replace(
"\r\n",
"\n", $a ) );
62 $nta = explode(
"\n", str_replace(
"\r\n",
"\n", $b ) );
64 $diffs =
new Diff( $ota, $nta );
66 $funky = $formatter->format( $diffs );
68 preg_match_all(
'/<(?:ins|del) class="diffchange">(.*?)<\/(?:ins|del)>/', $funky,
$matches );
70 $hex = bin2hex( $bit );
85 echo strlen( $clean ) .
", " . strlen( $norm );
86 if( $clean == $norm ) {
90 echo
"\traw: " . bin2hex( $str ) .
"\n" .
91 "\tphp: " . bin2hex( $clean ) .
"\n" .
92 "\ticu: " . bin2hex( $norm ) .
"\n";
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
randomString( $length, $nullOk, $ascii=false)
static cleanUp( $string)
The ultimate convenience function! Clean up invalid UTF-8 sequences, and convert to normal form C,...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
if(!defined( 'MEDIAWIKI')) if(!isset( $wgVersion)) $matches
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Class representing a 'diff' between two sequences of strings.