string TokenRight(string full, string tokens, int pos)
Useful for grabbing the rightmost tokens of a string. Requires the function, GetTokenPosX.
string TokenRight(string full, string tokens, int pos) // Includes token
// Pass: Full string, token delimiters, token to be right of.
// Return: A string returning tokens right of the specified token offset.
// Requires: GetTokenPosX.
// Assumes: pos > 0
{
if (pos < 1) return full;
pos = GetTokenPosX(full, tokens, pos, 1);
if (pos == len(full)) return "";
else return right(full, len(full) - pos + 1);
}There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
![]() |
Your docs |
![]() |