pub unsafe extern "C-unwind" fn DCSGetTermRangeInString(
dictionary: Option<&DCSDictionary>,
text_string: &CFString,
offset: CFIndex,
) -> CFRangeAvailable on crate feature
DictionaryServices only.Expand description
Look for a word or a phrase that contains the specified offset in dictionaries activated in Dictionary.app preference
Parameter dictionary: This parameter is not supported for Leopard. You should always pass NULL.
Parameter textString: Text that contains the word or phrase to look up
Parameter offset: Specifies a character offset in textString
Returns: Returns a detected range of word or phrase around the specified offset, or (kCFNotFound, 0) is returned if any term is not found in active dictionaries. The result range can be used as an input parameter of DCSCopyTextDefinition() and HIDictionaryWindowShow() in Carbon framework.