Can wcmatch test for a null string? This works (wcmatch "" "") these do not (wcmatch "" "\"\"") (wcmatch "" (strcat (chr 34) (chr 34)))
consider (= "" "\"\"") (EQ "" "\"\"") (EQUAL "" "\"\"") (strlen "") (strlen "\"\"") (strlen(strcat (chr 34) (chr 34))) it seems it does actually work though I'm not sure how you're trying to apply it (setq tstr "") (wcmatch tstr "") (= tstr "") (eq tstr "") (equal tstr "") ;here you're trying to match a null string pattern to a string with two " characters ;same there you should be getting nil are you not??? is that what you mean by not working?
This is an old one whose credit I attribute to Steve Johnson (down under)... (wcmatch str ", ") which returns T for empty text including nothing but spaces. For example... Command: (defun empty (x)(wcmatch x ", ")) EMPTY Command: (vl-remove-if 'empty '("" " " "ok")) ("ok")
I was attempting to apply it for testing a default dimension value, as in... (wcmatch value "*<>*,"\"\"") which could technically indicate a default instead of using (or (= "" value) (wcmatch value "*<>*"))