Important: The information in this document is obsolete and should not be used for new development.
SRAddText
You can use theSRAddText
function to add text to the contents of a language object.
pascal OSErr SRAddText ( SRLanguageObject base, const void *text, Size textLength, long refCon);
base
- A language object.
text
- The address of a buffer that contains the words or phrase to add to the contents of the specified language object.
textLength
- The size, in bytes, of the specified text.
refCon
- An application-defined reference constant. The value of the reference constant property of the new word or phrase representing the specified text is set to this value.
DESCRIPTION
TheSRAddText
function adds objects representing the text specified by thetext
andtextLength
parameters to the contents of the language object specified by thebase
parameter. In addition, the value of the reference constant property of the added objects is set to the value specified by therefCon
parameter.The
SRAddText
function is useful for phrases, paths, and language models. If thebase
parameter specifies a path or language model,SRAddText
is equivalent to callingSRNewPhrase
,SRAddLanguageObject
, andSRReleaseObject
for the phrase specified by thetext
parameter and callingSRSetProperty
to reset the value of the reference constant property of the new phrase.If the
base
parameter specifies a phrase,SRAddText
is equivalent to callingSRNewPhrase
,SRAddLanguageObject
, andSRReleaseObject
for each distinguishable word in thetext
parameter and callingSRSetProperty
to set the value of the reference constant property of the new words.