Tables may look like string to something maps, but they offer a bit more. The main difference is that a table can be matched against a string starting from specified position. The longest table token that matches is selected. For example, assuming that the table Tokens contains "List" and "Listener" then:
Tables may look like string to something maps, but they offer a bit more. The main difference is that a table can be matched against a string starting from specified position. The longest table token that matches is selected. For example, assuming that the table Tokens contains "List" and "Listener" then:
Will match "Listener" and advance Pointer beyond its appearance in Text.
Tables support case-sensitive and case-insensitive matching.
The new version add a variant of the procedure Get that does not raise exception when nothing matched returning a result code instead.