Important: The information in this document is obsolete and should not be used for new development.
SRAddLanguageObject
You can use theSRAddLanguageObjectfunction to add a language object to some other language object.
pascal OSErr SRAddLanguageObject ( SRLanguageObject base, SRLanguageObject addon);
base- A language object.
addon- A language object.
DESCRIPTION
TheSRAddLanguageObjectfunction adds the language object specified by theaddonparameter to the language object specified by thebaseparameter. For example, ifaddonspecifies a word andbasespecifies a phrase, thenSRAddLanguageObjectappends that word to the end of that phrase.The
SRAddLanguageObjectfunction is useful for adding language objects to phrases, paths, and language models. For a phrase or a path,SRAddLanguageObjectappends the specified object to the end of the phrase or path. For a language model,SRAddLanguageObjectadds the specified object to the list of alternative recognizable utterances.The language object to which you add an object acquires a new reference to that object. Accordingly, any changes you subsequently make to the added object are reflected in any object to which you added it. The base object releases its reference to the added object when the base object is disposed of.
SPECIAL CONSIDERATIONS
SRAddLanguageObjectdoes not alter the value of the reference constant property of the language object specified by thebaseparameter.SEE ALSO
SeeSRAddText(page 1-71) for a useful shortcut function.