set_correction


Description:

public void set_correction (string word, ssize_t word_length, string replacement, ssize_t replacement_length)

Informs the spell checker that word is replaced/corrected by replacement.

Parameters:

this

a Checker.

word

a word.

word_length

the byte length of word, or -1 if word is nul-terminated.

replacement

the replacement word.

replacement_length

the byte length of replacement, or -1 if replacement is nul-terminated.