protected function SearchApiPorter2::inR2 in Search API 7
Checks whether the given string is contained in R2.
Parameters
string $string: The string.
Return value
bool TRUE if the string is in R2, FALSE otherwise.
3 calls to SearchApiPorter2::inR2()
- SearchApiPorter2::step3 in includes/
processor_stemmer.inc - Implements step 3 of the Porter2 algorithm.
- SearchApiPorter2::step4 in includes/
processor_stemmer.inc - Implements step 4 of the Porter2 algorithm.
- SearchApiPorter2::step5 in includes/
processor_stemmer.inc - Implements step 5 of the Porter2 algorithm.
File
- includes/
processor_stemmer.inc, line 631 - Contains SearchApiPorterStemmer and SearchApiPorter2.
Class
- SearchApiPorter2
- Implements the Porter2 stemming algorithm.
Code
protected function inR2($string) {
$r2 = substr($this->word, $this->r2);
return strpos($r2, $string) !== FALSE;
}