| 887 | //========================================================================== |
| 888 | |
| 889 | int FScanner::MatchString (const char * const *strings, size_t stride) |
| 890 | { |
| 891 | int i; |
| 892 | |
| 893 | assert(stride % sizeof(const char*) == 0); |
| 894 | |
| 895 | stride /= sizeof(const char*); |
| 896 | |
| 897 | for (i = 0; *strings != NULL; i++) |
| 898 | { |
| 899 | if (Compare (*strings)) |
| 900 | { |
| 901 | return i; |
| 902 | } |
| 903 | strings += stride; |
| 904 | } |
| 905 | return -1; |
| 906 | } |
| 907 | |
| 908 | //========================================================================== |
| 909 | // |
no outgoing calls
no test coverage detected