protected function Markdown::_initDetab in Markdown 7
* Check for the availability of the function in the `utf8_strlen` property * (initially `mb_strlen`). If the function is not available, create a * function that will loosely count the number of UTF-8 characters with a * regular expression. *
Return value
void
1 call to Markdown::_initDetab()
- Markdown::__construct in includes/
Markdown.php - * Constructor function. Initialize appropriate member variables. *
File
- includes/
Markdown.php, line 1867
Class
- Markdown
- Markdown Parser Class
Namespace
MichelfCode
protected function _initDetab() {
if (function_exists($this->utf8_strlen)) {
return;
}
$this->utf8_strlen = create_function('$text', 'return preg_match_all(
"/[\\\\x00-\\\\xBF]|[\\\\xC0-\\\\xFF][\\\\x80-\\\\xBF]*/",
$text, $m);');
}