Carbon


SREmptyLanguageObject

Header: SpeechRecognition.h Carbon status: Supported

Empties the contents of a language object.

OSErr SREmptyLanguageObject (
    SRLanguageObject languageObject
);
Parameter descriptions
languageObject

A language object.

function result

A result code.

DISCUSSION

The SREmptyLanguageObject function empties the contents of the language object specified by the languageObject parameter. (For example, if languageObject specifies a phrase containing two words, calling SREmptyLanguageObject would result in a phrase that contains no words.) Any properties of that object that are not related to its contents are unchanged. In particular, SREmptyLanguageObject does not alter the value of the reference constant property of that language object.

If there are no other references to the words, phrases, and paths that were contained in the language object, calling SREmptyLanguageObject causes them to be disposed of.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)