Important: The information in this document is obsolete and should not be used for new development.
SRNewWord
You can use theSRNewWord
function to create a new word.
pascal OSErr SRNewWord ( SRRecognitionSystem system, SRWord *word, const void *text, Size textLength);
system
- A recognition system.
word
- On exit, a reference to a new word associated with the specified recognition system.
text
- The address of a buffer that contains the characters that comprise the word.
textLength
- The size, in bytes, of the specified text.
DESCRIPTION
TheSRNewWord
function returns, in theword
parameter, a reference to a new word associated with the recognition system specified by thesystem
parameter. The word's spelling is specified by thetext
andtextLength
parameters.SPECIAL CONSIDERATIONS
You should call theSRReleaseObject
function to release the word reference returned bySRNewWord
when you're done using it.