protected function Markdown::_initDetab in Express 8
* 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 vendor/
michelf/ php-markdown/ Michelf/ Markdown.php - * Constructor function. Initialize appropriate member variables. *
File
- vendor/
michelf/ php-markdown/ Michelf/ 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);');
}