Lines Matching refs:str1
859 static int nbp_strcmp (str1, str2, embedded_wildcard)
860 register at_nvestr_t *str1, *str2;
861 register u_char embedded_wildcard; /* If str1 may contain a character
875 /* Embedded wildcard, if any, could only be in the first string (str1).
879 if (str1->len == 0 || str2->len == 0) {
885 * If str1 could potentially contain an embedded wildcard, since the
886 * embedded wildcard matches ZERO OR MORE characters, str1 can not be
889 * If str1 is not supposed to have embedded wildcards, the two strs
892 if ((embedded_wildcard && (str2->len < (unsigned) (str1->len-1))) ||
893 (!embedded_wildcard && (str2->len != str1->len))) {
897 for (i1 = i2 = left_index = 0; (unsigned) i1 < str1->len ;) {
898 ch1 = str1->str[i1];
909 if (i1 == str1->len-1) {
913 i1 = str1->len - 1;