initAlphabet

Initialise the alphabet for the Bitap algorithm. @param pattern The text to encode. @return Hash of character locations.

int[char]
initAlphabet
(
string pattern
)

Meta