Check the spelling of a word.
#include <spellcheck_client.h>
int spellcheck_check_spelling(spellcheck_context_t *spellcheck_context, const char *text_to_check, bool *is_misspelled, unsigned int max_timeout)
BlackBerry 10.0.0
The spell check client instance in which the check is performed.
The word to check for spelling, in utf-8 encoding.
The spelling correctness of the word. The value is true if the word is misspelled, or false otherwise.
The maximum amount of time in milliseconds for the function to complete before the ETIMEDOUT error occurs.
The spellcheck_check_spelling() function verifies the spelling of a single word and identifies whether the word is misspelled or not. The dictionaries used by the spell check client to determine spelling correctness is based on the system input locale settings.
SPELLCHECK_CHECK_SPELLING_SUCCESS if the word was successfully checked for spelling, or SPELLCHECK_FAILURE with errno set otherwise. errno=ETIMEDOUT occurs if the timeout exceeds max_timeout.