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
Compliance
TokenSep() is compatible with CT3’s TokenSep().
Platforms
All
Files
Source is token1.c, library is libct.
Seealso
TOKEN(), NUMTOKEN(), ATTOKEN(), TOKENLOWER(), TOKENUPPER()
Pingback: Harbour String Functions | Viva Clipper !
Pingback: Harbour All Functions – T | Viva Clipper !