Loads a grammar from a null terminated string buffer.Grammar can be written in ABNF or XML notations.
- int LVGrammar_LoadGrammarFromBuffer(HGRAMMAR Grammar, const char* buffer)
A handle to the grammar.
A null terminated string containing the contents of a valid SRGS grammar.
No errors; this grammar is now ready for use.
The grammar file was not fully conforming, but it was understandable and is now ready to be used
The grammar file was not understandable to the grammar compiler.You will not be able to decode with this grammar.
The grammar compiler was unable to find the location of the grammar you loaded.
Detailed error and warning messages are sent to the grammar object's logging callback function.