Searched refs:tokens (Results 1 – 13 of 13) sorted by relevance
| /dokuwiki/inc/Search/Collection/ |
| H A D | FrequencyCollection.php | 18 protected function countTokens(array $tokens): array argument 20 return array_count_values($tokens);
|
| H A D | LookupCollection.php | 18 protected function countTokens(array $tokens): array argument 20 return array_fill_keys(array_unique($tokens), 1);
|
| H A D | DirectCollection.php | 47 * @param string[] $tokens The list of tokens (only the first is used) 53 public function addEntity(string $entity, array $tokens): static argument 62 $token = $tokens[0] ?? ''; 120 protected function countTokens(array $tokens): array argument 122 $token = $tokens[0] ?? '';
|
| H A D | AbstractCollection.php | 326 * @param string[] $tokens The list of tokens for this entity 332 public function addEntity(string $entity, array $tokens): static argument 342 $new = $this->resolveTokens($tokens); 359 * @param string[] $tokens The raw token list 363 protected function resolveTokens(array $tokens): array argument 365 $counted = $this->countTokens($tokens); 395 * @param string[] $tokens The raw token list 398 abstract protected function countTokens(array $tokens): array; argument 486 foreach ($data as $group => $tokens) { 488 foreach (array_keys($tokens) as $tokenId) { [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | Extension.php | 891 $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], true) 906 if (isset($tokens[$j]) && is_array($tokens[$j]) && $tokens[$j][0] === T_STRING) { 907 return $tokens[$j][1]; // Return class name
|
| /dokuwiki/inc/Search/Query/ |
| H A D | QueryParser.php | 135 $tokens = explode(' ', $term); 136 foreach ($tokens as $token) { 189 $tokens = preg_split( 195 foreach ($tokens as $token) { 222 $tokens = preg_split( 228 foreach ($tokens as $token) {
|
| /dokuwiki/_test/tests/Search/Collection/ |
| H A D | FrequencyCollectionTest.php | 18 $tokens = ['one', 'two', 'three', 'four', 'two']; 20 $index->addEntity('test', $tokens); 38 $tokens = ['two', 'three', 'four', 'two']; 40 $index->addEntity('test', $tokens);
|
| H A D | TermTest.php | 151 $tokens = $term->getTokens(); 152 sort($tokens); 153 $this->assertEquals(['dokuwiki', 'wiki', 'wikipedia', 'wikitext'], $tokens);
|
| H A D | CollectionSearchTest.php | 82 $tokens = Tokenizer::getWords($text); 86 $collection->addEntity('search:test', $tokens);
|
| /dokuwiki/inc/Remote/OpenApiDoc/ |
| H A D | ClassResolver.php | 101 $tokens = token_get_all($source); 110 foreach ($tokens as $token) {
|
| /dokuwiki/inc/Search/ |
| H A D | LegacyIndexer.php | 262 * @param array $tokens list of words to search for 267 public function lookup($tokens) argument 273 foreach ($tokens as $token) {
|
| /dokuwiki/vendor/simplepie/simplepie/src/ |
| H A D | Misc.php | 1930 $tokens = []; 1934 $tokens[] = substr($string, $position, $len); 1939 return $tokens;
|
| /dokuwiki/vendor/geshi/geshi/src/ |
| H A D | geshi.php | 4578 $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 …]
|