protected function SearchApiPorter2::validLi in Search API 7
Checks whether the given string is a valid -li prefix.
Parameters
string $string: The string to check.
Return value
bool TRUE if the given string is a valid -li prefix, FALSE otherwise.
1 call to SearchApiPorter2::validLi()
- SearchApiPorter2::step2 in includes/
processor_stemmer.inc - Implements step 2 of the Porter2 algorithm.
File
- includes/
processor_stemmer.inc, line 716 - Contains SearchApiPorterStemmer and SearchApiPorter2.
Class
- SearchApiPorter2
- Implements the Porter2 stemming algorithm.
Code
protected function validLi($string) {
return in_array($string, array(
'c',
'd',
'e',
'g',
'h',
'k',
'm',
'n',
'r',
't',
));
}