Browse
 
Tools
Rss Categories

LV_SRE_IsGrammarLoaded

Reference Number: AA-00706 Views: 7402 0 Rating/ Voters

Check if a grammar has already been loaded.

Function

  • int LV_SRE_IsGrammarLoaded(HPORT hport, const char* gram_name)

Parameters

hport

The port's handle.

gram_name

The identifier for the grammar being queried. This is the same identifier you gave the grammar when you loaded it.

Return Values

  1

Indicates that a grammar was found with the label gram_name in the space of application-level grammars.

  0

Indicates that the grammar has not been loaded.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

This function only tells you if a grammar with the name gram_name is loaded. It does not tell you if there are two identical grammar bodies loaded.

See Also