Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 6 of 6) sorted by relevance

/dokuwiki/lib/plugins/extension/
H A DExtension.php891 $tokens = token_get_all($code);
893 for ($i = 0, $count = count($tokens); $i < $count; $i++) {
894 if (is_array($tokens[$i]) && $tokens[$i][0] === T_CLASS) {
898 isset($tokens[$j]) &&
899 is_array($tokens[$j]) &&
900 in_array($tokens[$j][0], [T_WHITESPACE, T_COMMENT, T_DOC_COMMENT])
906 if (isset($tokens[$j]) && is_array($tokens[$j]) && $tokens[$j][0] === T_STRING) {
907 return $tokens[$j][1]; // Return class name
/dokuwiki/inc/Remote/OpenApiDoc/
H A DClassResolver.php101 $tokens = token_get_all($source);
110 foreach ($tokens as $token) {
/dokuwiki/inc/Search/
H A DIndexer.php115 $tokens = $this->tokenizer($text);
116 $tokens = array_count_values($tokens); // count the frequency of each token
119 foreach ($tokens as $w => $c) {
608 * @param array $tokens list of words to search for
614 public function lookup(&$tokens) argument
617 $wids = $this->getIndexWords($tokens, $result);
769 $tokens = [];
792 if (!isset($tokens[$xword]))
796 $tokens[$xword][] = [$word, '/' . $re . '/'];
800 $tokens[$xword][] = [$word, null];
[all …]
/dokuwiki/inc/
H A Dfulltext.php771 $tokens = explode(' ', $term);
772 foreach ($tokens as $token) {
825 …$tokens = preg_split('/(NOT\(|[()])/u', $parsed_query, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_N…
826 foreach ($tokens as $token) {
853 …$tokens = preg_split($ope_regex, $parsed_query, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY…
854 foreach ($tokens as $token) {
/dokuwiki/vendor/simplepie/simplepie/src/
H A DMisc.php1887 $tokens = [];
1891 $tokens[] = substr($string, $position, $len);
1896 return $tokens;
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php4578 $tokens = array();
4585 $regexp_list[++$list_key] = $this->_optimize_regexp_list_tokens_to_string($tokens);
4587 $tokens = array();
4592 $pointer = &$tokens;
4640 if ($level == 0 && !empty($tokens)) {
4642 $new_entry = $this->_optimize_regexp_list_tokens_to_string($tokens);
4654 $tokens = array();
4667 $new_entry = $this->_optimize_regexp_list_tokens_to_string($tokens);
4686 * @param array $tokens array of tokens
4692 protected function _optimize_regexp_list_tokens_to_string(&$tokens, $recursed = false) { argument
[all …]