Lines Matching refs:str
140 smb_match_private(const char *pat, const char *str, struct match_priv *priv) in smb_match_private() argument
160 #define ADVANCE(str) \ in smb_match_private() argument
161 if ((nbstr = smb_mbtowc(NULL, str, MTS_MB_CHAR_MAX)) < 1) \ in smb_match_private()
164 str += nbstr /* no ; */ in smb_match_private()
175 if (*str != '\0') { in smb_match_private()
176 ADVANCE(str); in smb_match_private()
187 while (*str != '\0') { in smb_match_private()
189 rc = smb_match_private(pat, str, priv); in smb_match_private()
193 ADVANCE(str); in smb_match_private()
199 if ((limit = strrchr(str, '.')) != NULL) in smb_match_private()
201 while (*str != '\0' && str != limit) { in smb_match_private()
203 rc = smb_match_private(pat, str, priv); in smb_match_private()
207 ADVANCE(str); in smb_match_private()
213 if (*str == '.') { in smb_match_private()
214 if (str[1] == '\0') { in smb_match_private()
216 str++; /* ADVANCE over '.' */ in smb_match_private()
222 if (*str != '\0') { in smb_match_private()
224 ADVANCE(str); in smb_match_private()
231 if (*str == '.') { in smb_match_private()
232 str++; /* ADVANCE over '.' */ in smb_match_private()
235 if (*str == '\0') { in smb_match_private()
243 nbstr = smb_mbtowc(&wcstr, str, MTS_MB_CHAR_MAX); in smb_match_private()
249 str += nbstr; in smb_match_private()
257 str += nbstr; in smb_match_private()
264 return (*str == '\0'); in smb_match_private()