Browse
 
Tools
Rss Categories

LVGrammar::GetNumberOfMetaData

Reference Number: AA-00876 Views: 1393 0 Rating/ Voters

Return the number of meta data contained in the grammar.

Function

  • int GetNumberOfMetaData()

Parameters

None.

Example

If the grammar contains the following lines:

meta 'description' is 'example grammar';

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

You can access meta data as follows:

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

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

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

See Also