int Scanner FindSeparator std string separator int index while separat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
int Scanner::FindSeparator(std::string separator) {
int index = 0;
while (separators[index] != NULL) {
if (separator.compare(separators[index])) {
return index;
}
index++;
}
return -1;
}