Entry | |
---|---|
R0 | Pointer to 4-word data structure (cannot be 0) |
R1 | Pointer to token (possibly wildcarded) |
R2 | Pointer to buffer for result |
R3 | Size of buffer |
R4 | Index (0 for first time) |
Exit | |
---|---|
R0 | Preserved |
R1 | Preserved |
R2 | 0 if no more matching tokens, otherwise preserved |
R3 | Length of result (excluding terminator) |
R4 | Next index |
Wildcard token | |
---|---|
? | 1 character wildcard |
* | 0 or more characters |
This SWI is used to look up tokens that match the given wildcarded token specification.
The token returned in the buffer has the same terminator as the wildcard in R1.