TOKENSEP()

Retrieves the token separators of the last token() call

Syntax

TOKENSEP ([<lMode>]) -> cSeparator

Arguments

[<lMode>] if set to .T., the token separator BEHIND the token retrieved from the token() call will be returned. Default: .F., returns the separator BEFORE the token

Returns

Depending on the setting of <lMode>, the separating character of the the token retrieved from the last token() call will be returned. These separating characters can now also be retrieved with the token() function.

Description

When one does extract tokens from a string with the token() function, one might be interested in the separator characters that have been used to extract a specific token. To get this information you can either use the TOKENSEP() function after each token() call, or use the new 5th and 6th parameter of the token() function.
Examples
      see TOKEN() function
Status

Ready

Compliance

TOKENSEP() is compatible with CT3's TOKENSEP().

Platforms

All

Files

Source is token1.c, library is libct.

See Also