| /dokuwiki/_test/tests/Search/Collection/ |
| H A D | TermTest.php | 12 $term = new Term('dokuwiki'); 14 $this->assertEquals('dokuwiki', $term->getOriginal()); 15 $this->assertEquals('dokuwiki', $term->getBase()); 16 $this->assertEquals('dokuwiki', $term->getQuoted()); 17 $this->assertEquals(8, $term->getLength()); 18 $this->assertEquals(Term::WILDCARD_NONE, $term->getWildcard()); 23 $term = new Term('*wiki'); 25 $this->assertEquals('*wiki', $term->getOriginal()); 26 $this->assertEquals('wiki', $term->getBase()); 27 $this->assertEquals('.*wiki', $term->getQuoted()); [all …]
|
| H A D | CollectionSearchTest.php | 23 $term = $search->addTerm('dokuwiki'); 29 $this->assertEquals(['dokuwiki'], $term->getTokens()); 31 $this->assertEquals(['page1' => 2, 'page2' => 1], $term->getEntityFrequencies()); 33 $this->assertEquals(['dokuwiki' => 2], $term->getMatches()['page1']); 34 $this->assertEquals(['dokuwiki' => 1], $term->getMatches()['page2']); 113 $term = $search->addTerm('zzzznotfound'); 116 $this->assertEmpty($term->getTokens()); 117 $this->assertEmpty($term->getEntityFrequencies()); 118 $this->assertEmpty($term->getMatches()); 135 $term = $search->addTerm('wiki:syntax'); [all …]
|
| /dokuwiki/inc/Search/Collection/ |
| H A D | CollectionSearch.php | 55 * @param string $term the search term, may include * wildcards at start/end 58 public function addTerm(string $term): Term argument 60 $term = new Term($term); 63 $term->caseInsensitive(); 67 $this->allTerms[$term->getOriginal()] = $term; 71 if ($term->getWildcard()) { 77 $max = $term->getLength(); 80 for ($i = $term->getLength(); $i <= $max; $i++) { 81 $this->groupedTerms[$i][] = $term; 85 $this->groupedTerms[0][] = $term; [all …]
|
| H A D | Term.php | 46 * @param string $term 48 public function __construct(string $term) argument 50 $this->original = $term; 51 $this->base = trim($term, '*'); 56 if (str_starts_with($term, '*')) { 61 if (str_ends_with($term, '*')) {
|
| /dokuwiki/inc/Utf8/ |
| H A D | Asian.php | 62 * @param string $term 65 public static function isAsianWords($term) argument 67 return (bool)preg_match('/' . self::REGEXP . '/u', $term); 91 * @param string $term 94 public static function splitAsianWords($term) argument 96 …return preg_split('/(' . self::REGEXP . '+)/u', $term, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_N…
|
| /dokuwiki/inc/Search/Query/ |
| H A D | QueryParser.php | 19 * @param string $term 26 …public function termParser(string $term, bool $consider_asian = true, bool $phrase_mode = false): … argument 31 $words = Asian::splitAsianWords($term); 37 $term_noparen = str_replace(['(', ')'], ' ', $term); 43 } elseif ($words[0] === $term) { 46 $term_encoded = str_replace(['(', ')'], ['OP', 'CP'], $term); 111 foreach ($terms as $term) { 113 if (preg_match('/^(-?)"(.+)"$/u', $term, $matches)) { 119 $term = str_replace('"', ' ', $term); 122 $term = str_replace(')', ' ) ', $term); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/ |
| H A D | Category.php | 25 public $term; variable in SimplePie\\Category 57 * @param string|null $term 62 …public function __construct(?string $term = null, ?string $scheme = null, ?string $label = null, ?… argument 64 $this->term = $term; 88 return $this->term;
|
| H A D | Source.php | 139 $term = null; 143 … $term = $this->sanitize($category['attribs']['']['term'], \SimplePie\SimplePie::CONSTRUCT_TEXT); 151 $categories[] = $this->registry->create(Category::class, [$term, $scheme, $label]); 156 $term = $this->sanitize($category['data'], \SimplePie\SimplePie::CONSTRUCT_TEXT); 162 $categories[] = $this->registry->create(Category::class, [$term, $scheme, null]);
|
| H A D | Item.php | 402 $term = null; 406 … $term = $this->sanitize($category['attribs']['']['term'], \SimplePie\SimplePie::CONSTRUCT_TEXT); 414 … $categories[] = $this->registry->create(Category::class, [$term, $scheme, $label, $type]); 419 $term = $this->sanitize($category['data'], \SimplePie\SimplePie::CONSTRUCT_TEXT); 425 $categories[] = $this->registry->create(Category::class, [$term, $scheme, null, $type]); 1001 $term = null; 1005 … $term = $this->sanitize($category['data'], \SimplePie\SimplePie::CONSTRUCT_TEXT); 1032 … $categories_parent[] = $this->registry->create(Category::class, [$term, $scheme, $label]); 1035 $term = null; 1563 … $categories[] = $this->registry->create(Category::class, [$term, $scheme, $label]); [all …]
|
| H A D | SimplePie.php | 2575 $term = null; 2579 $term = $this->sanitize($category['attribs']['']['term'], self::CONSTRUCT_TEXT); 2587 $categories[] = $this->registry->create(Category::class, [$term, $scheme, $label]); 2592 $term = $this->sanitize($category['data'], self::CONSTRUCT_TEXT); 2598 $categories[] = $this->registry->create(Category::class, [$term, $scheme, null]);
|
| /dokuwiki/inc/Search/ |
| H A D | FulltextSearch.php | 247 * @param string $term 250 public function snippetRePreprocess(string $term): string argument 253 if (Asian::isAsianWords($term)) return $term; 266 if (str_starts_with($term, '\\*')) { 267 $term = substr($term, 2); 269 $term = $BL . $term; 272 if (str_ends_with($term, '\\*')) { 273 $term = substr($term, 0, -2); 275 $term .= $BR; 278 if (in_array($term, [$BL, $BR, $BL . $BR], true)) { [all …]
|
| H A D | Tokenizer.php | 125 * @param string $term the search term, may include * wildcards 128 public static function isValidSearchTerm(string $term): bool argument 130 $base = trim($term, '*');
|
| H A D | MetadataSearch.php | 97 $term = reset($terms); 98 if ($term) { 99 foreach ($term->getEntityTokens() as $page => $titles) { 170 $term = $terms[$v] ?? null; 171 $result[$v] = $term ? array_keys($term->getEntityFrequencies()) : [];
|
| H A D | LegacyIndexer.php | 275 $term = $search->addTerm($token); 276 $termMap[$token] = $term; 283 foreach ($termMap as $word => $term) { 284 $freqs = $term->getEntityFrequencies();
|
| /dokuwiki/inc/Ui/ |
| H A D | Search.php | 219 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']), 220 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']), 224 … 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']), 225 … 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']), 229 … 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']), 230 … 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']), 234 … 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']), 235 … 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
|
| /dokuwiki/_test/tests/Search/Query/ |
| H A D | QueryEvaluatorTest.php | 25 $term = new Term($word); 27 $term->addMatch($page, $word, $freq); 29 return $term;
|
| /dokuwiki/conf/ |
| H A D | wordblock.conf | 25 …ay|samedayessay|superiorcontent|superiorpaper|superiorthesis|term-paper|termpaper-blog|term-paper-…
|
| /dokuwiki/vendor/phpseclib/phpseclib/ |
| H A D | README.md | 34 * Long term support (LTS) release 42 * Long term support (LTS) release 50 * Long term support (LTS) release
|
| /dokuwiki/inc/ |
| H A D | deprecated.php | 434 * @param string $term 439 function ft_snippet_re_preprocess($term) argument 442 return (new dokuwiki\Search\FulltextSearch())->snippetRePreprocess($term);
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/ |
| H A D | SSH2.php | 1048 private $term = 'vt100'; variable in phpseclib3\\Net\\SSH2 2896 $this->term, 3052 $this->term, 5247 * @param string $term 5249 public function setTerminal($term) argument 5251 $this->term = $term;
|
| /dokuwiki/vendor/splitbrain/lesserphp/ |
| H A D | LICENSE | 197 All rights granted under this License are granted for the term of 363 fixed term (regardless of how the transaction is characterized), the 432 governed by this License along with a term that is a further 433 restriction, you may remove that term. If a license document contains
|
| /dokuwiki/ |
| H A D | COPYING | 70 the term "modification".) Each licensee is addressed as "you".
|
| /dokuwiki/vendor/geshi/geshi/ |
| H A D | LICENSE | 70 the term "modification".) Each licensee is addressed as "you".
|
| /dokuwiki/lib/scripts/jquery/ |
| H A D | jquery-ui.min.js | 6 …term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:func… property
|
| /dokuwiki/vendor/openpsa/universalfeedcreator/ |
| H A D | LICENSE | 134 included without limitation in the term "modification".)
|