Browse
 
Tools
Rss Categories

API Functions

21 LVGrammar_RemoveRule (Deprecated)

Remove rules to a grammar object. Function int LVGrammar_RemoveRule(HGRAMMAR Grammar, const char* rule_name) Parameters Grammar A handle to the grammar. rule_name The name of the rule Return Values LV_SUCCESS No errors; the rule has been successfully added…

22 LVGrammar_Reset

Reset a grammar object. Function int LVGrammar_Reset (HGRAMMAR Grammar) Parameters Grammar The handle to the grammar object to be reset. Return Values LV_SUCCESS No Error See Also LVGrammar C API Summary LVGrammar::Reset (C++ API)

23 LVGrammar_SetLanguage

Set language for the grammar, Function int LVGrammar_SetLanguage(HGRAMMAR Grammar, const char* language) Parameters Grammar A handle to the grammar. language The language identifier for the grammar Example The following code in C: LVGrammar_SetLanguage (…

24 LVGrammar_SetMode (Deprecated)

Set mode property for the grammar, Function int LVGrammar_SetMode(HGRAMMAR Grammar, const char* mode) Parameters Grammar A handle to the grammar. mode The interaction mode of the grammar. Example The following code in C: LVGrammar_SetLanguage ( Grammar, "en-US"…

25 LVGrammar_SetRoot (Deprecated)

Identifies one of the grammar rules as the root rule. The root rule is where the engine starts its search. Function int LVGrammar_SetRoot(HGRAMMAR Grammar, const char* rule_name) Parameters Grammar A handle to the grammar. rule_name The name of the rule.…

26 LVGrammar_SetTagFormat (Deprecated)

Set interpretation tag format of the grammar. Function int LVGrammar_SetTagFormat(HGRAMMAR Grammar, const char* tag_format) Parameters Grammar A handle to the grammar. tag_format The grammar's tag format. Example The following code in C: LVGrammar_SetLanguage…