I never was aware of this function's equivalent in Delphi, what version do you have? I think FPC has this, but it's easy enough to code to return an array of strings or a stack containing the tokens.