Browse
 
Tools
Rss Categories

LV_SRE_ReturnGrammarVocabSize

Reference Number: AA-00720 Views: 1547 0 Rating/ Voters

Returns the vocabulary size of the specified grammar.

Function

  • int LV_SRE_ReturnGrammarVocabSize(HPORT hport, const char* GrammarLabel)

Parameters

hport

The port's handle.

GrammarLabel

The label of the grammar whose vocab size needs to be returned.

Return Values

Non-negative number

No errors.

LV_FAILURE

Grammar did not load successfully.

LV_INVALID_GRAMMAR_LABEL

Indicates GrammarLabel is not valid.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

The vocabulary size of the grammar returned by this function is the number that is used to limit licensing for Tier 1 and Tier 2 (VoxLite) licenses.

See Also