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

Comparing deliantra/server/common/shstr.C (file contents):
Revision 1.44 by root, Thu Apr 15 00:36:51 2010 UTC vs.
Revision 1.45 by root, Sat Aug 28 23:49:03 2010 UTC

58 58
59 return v; 59 return v;
60} 60}
61 61
62shstr_vec<sizeof "(null)"> shstr_tmp::nullvec = { STRHSH_NULL, 0, 0xffffffff, "(null)" }; 62shstr_vec<sizeof "(null)"> shstr_tmp::nullvec = { STRHSH_NULL, 0, 0xffffffff, "(null)" };
63
64bool
65shstr_tmp::contains (const char *substring) const
66{
67 //TODO: this is supposed to check for comma-seperation...
68 return s != null ()
69 && substring
70 && strstr (s, substring);
71}
63 72
64const char * 73const char *
65shstr::find (const char *s) 74shstr::find (const char *s)
66{ 75{
67 if (!s) 76 if (!s)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines