ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/shstr.h
(Generate patch)

Comparing deliantra/server/include/shstr.h (file contents):
Revision 1.38 by root, Fri Mar 26 01:04:44 2010 UTC vs.
Revision 1.39 by root, Sat Aug 28 23:49:03 2010 UTC

84 } 84 }
85 85
86 // returns true if the substring is contained in the shstr 86 // returns true if the substring is contained in the shstr
87 // if the shstr is 0, then this always returns false. 87 // if the shstr is 0, then this always returns false.
88 // the shstr is (theoretically) treated as a comma/colon/space etc. separated list. 88 // the shstr is (theoretically) treated as a comma/colon/space etc. separated list.
89 bool contains (const char *substring) const 89 bool contains (const char *substring) const;
90 {
91 return s != null () && strstr (s, substring);
92 }
93 90
94 //TODO: case sensitive should be eradicated 91 //TODO: case sensitive should be eradicated
95 bool eq_nc (const char *otherstring) const 92 bool eq_nc (const char *otherstring) const
96 { 93 {
97 return !strcasecmp (s, otherstring); 94 return !strcasecmp (s, otherstring);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines