Class RuntimeScanf
java.lang.Object
io.github.protasm.jvmud.language.runtime.RuntimeScanf
Runtime support for LPC sscanf-style output captures.
-
Method Summary
-
Method Details
-
scan
Matches an LPCsscanfformat at the start of an input value.A successful match need not consume the entire input. A final
%scapture does, however, receive the remaining input while earlier string captures remain minimal. Only%sand%dintroduce captures; other characters are literal, so%%dis a literal percent followed by an integer capture.- Parameters:
inputValue- value to scanformatValue- LPCsscanfformatcaptureCount- number of output captures supplied by the caller- Returns:
- the match count followed by the captured values
-