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