--- deliantra/server/include/shstr.h 2009/01/01 19:42:43 1.31 +++ deliantra/server/include/shstr.h 2009/01/01 20:49:48 1.32 @@ -70,6 +70,9 @@ return length () >= plen && !strncasecmp (s, prefix, plen); } + // returns true if the substring is contained in the shstr + // if the shstr is 0, then this always returns false. + // the shstr is (theoretically) treated as a comma/colon/space etc. separated list. bool contains (const char *substring) const { return s != null () && strstr (s, substring);