#include"script.h" int main() { chr *sep = " ;,.\n"; Str buf( " 123 ;.45" ); strI bp = 0; strI pos = find_first_not_of_digit( buf, bp ); // pos == 0 bp = 2; pos = find_first_not_of_digit( buf, bp ); // pos == 4 bp = 7; pos = find_first_not_of_digit( buf, bp ); // pos == NPOS bp = 0; pos = find_first_of_digit( buf, bp ); // pos == 1 bp = 2; pos = find_first_of_digit( buf, bp ); // pos == 2 buf = " 123 ;.45 \n"; bp = 9; pos = find_first_of_digit( buf, bp ); // pos == NPOS bp = 0; pos = find_last_of_digit( buf, bp ); // pos == 0 bp = 1; pos = find_last_of_digit( buf, bp ); // pos == 3 bp = 5; pos = find_last_of_digit( buf, bp ); // pos == 5 bp = 0; pos = rfind_last_not_of_digit( buf, bp ); //pos == 0 bp = 2; pos = rfind_last_not_of_digit( buf, bp ); //pos == 2 bp = 6; pos = rfind_last_not_of_digit( buf, bp ); //pos == 4 bp = 0; pos = rfind_last_of_digit( buf, bp ); //pos == 1 bp = 3; pos = rfind_last_of_digit( buf, bp ); //pos == 1 bp = 9; pos = rfind_last_of_digit( buf, bp ); //pos == 9 bp = 3; pos = rfind_first_not_of_digit( buf, bp ); //pos == 0 bp = 0; pos = rfind_first_not_of_digit( buf, bp ); //pos == 0 bp = 0; pos = rfind_first_of_digit( buf, bp ); //pos == NPOS bp = 6; pos = rfind_first_of_digit( buf, bp ); //pos == 3 }