Check if a grammar has already been loaded.
- int LV_SRE_IsGrammarLoaded(HPORT hport, const char* gram_name)
The port's handle.
The identifier for the grammar being queried. This is the same identifier you gave the grammar when you loaded it.
Indicates that a grammar was found with the label gram_name in the space of application-level grammars.
Indicates that the grammar has not been loaded.
The input hport is not a valid one.
An exception occurred while processing the request.
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.