Add SMCParser.ParseString (#1817)

This commit is contained in:
Corey D
2022-12-02 16:55:08 +01:00
committed by GitHub
parent 8538233985
commit 5d391fda07
2 changed files with 37 additions and 0 deletions
+8
View File
@@ -147,6 +147,14 @@ methodmap SMCParser < Handle
// @return An SMCParseError result.
public native SMCError ParseFile(const char[] file, int &line = 0, int &col = 0);
// Parses raw UTF-8 text as an SMC file.
//
// @param string A string containing an SMC file.
// @param line An optional variable to store the last line number read.
// @param col An optional variable to store the last column number read.
// @return An SMCParseError result.
public native SMCError ParseString(const char[] string, int &line = 0, int &col = 0);
// Sets the callback for receiving SMC_ParseStart events.
property SMC_ParseStart OnStart {
public native set(SMC_ParseStart func);