#include"script.h" int main() { chr *sep = " ;,.\n"; Str buf( "abcde.\n ;;fgh" ); strI bp = 4; strI pos = rfind_first_of( buf, bp, sep ); //pos == NPOS bp = 6; pos = rfind_first_of( buf, bp, sep ); //pos == 6 bp = 12; pos = rfind_first_of( buf, bp, sep ); //pos == 9 bp = 4; pos = buf.find_first_of( sep, bp ); //pos == 5 bp = 6; pos = buf.find_first_of( sep, bp ); //pos == 6 bp = 12; pos = buf.find_first_of( sep, bp ); //pos == NPOS }