Contents

checkSpelling(of:startingAt:)

Starts the search for a misspelled word in stringToCheck starting at startingOffset within the string object.

Declaration

func checkSpelling(of stringToCheck: String, startingAt startingOffset: Int) -> NSRange

Parameters

  • stringToCheck:

    The string to spell check.

  • startingOffset:

    The offset at which to start checking.

Return Value

Returns the range of the first misspelled word.

Discussion

Wrapping occurs, but no ignored-words dictionary is used.

See Also

Checking Strings for Spelling and Grammar