Browse
 
Tools
Rss Categories

LVGrammar_GetNumberOfMetaData

Reference Number: AA-00843 Views: 1367 0 Rating/ Voters

Return the number of meta data contained in the grammar.

Function

  • int LVGrammar_GetNumberOfMetaData(HGRAMMAR Grammar)

Parameters

Grammar

A handle to the grammar.

Example

If the grammar has following lines:

meta 'description' is 'example grammar';

meta 'date' is '05/12/2005';


You can access meta data as follows:

int count = LVGrammar_GetNumberOfMetaData(grammar); // Returns 2

const char* key = LVGrammar_GetMetaDataKey(grammar, 0); // Returns "description"

const char* value = LVGrammar_GetMetaDataValue(grammar, 1); // Returns "05/12/2005"

See Also