You are here

protected function SearchApiPorter2::length in Search API 7

Determines the string length of the current word.

Return value

int The string length of the current word.

11 calls to SearchApiPorter2::length()
SearchApiPorter2::hasEnding in includes/processor_stemmer.inc
Checks whether the word ends with the given string.
SearchApiPorter2::isShort in includes/processor_stemmer.inc
Determines whether the word is short.
SearchApiPorter2::isShortSyllable in includes/processor_stemmer.inc
Determines whether the word ends in a "vowel-consonant" suffix.
SearchApiPorter2::R in includes/processor_stemmer.inc
Determines the start of a certain "R" region.
SearchApiPorter2::stem in includes/processor_stemmer.inc
Computes the stem of the word.

... See full list

File

includes/processor_stemmer.inc, line 642
Contains SearchApiPorterStemmer and SearchApiPorter2.

Class

SearchApiPorter2
Implements the Porter2 stemming algorithm.

Code

protected function length() {
  return strlen($this->word);
}