… | |
… | |
58 | |
58 | |
59 | return v; |
59 | return v; |
60 | } |
60 | } |
61 | |
61 | |
62 | shstr_vec<sizeof "(null)"> shstr_tmp::nullvec = { STRHSH_NULL, 0, 0xffffffff, "(null)" }; |
62 | shstr_vec<sizeof "(null)"> shstr_tmp::nullvec = { STRHSH_NULL, 0, 0xffffffff, "(null)" }; |
|
|
63 | |
|
|
64 | bool |
|
|
65 | shstr_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 | |
64 | const char * |
73 | const char * |
65 | shstr::find (const char *s) |
74 | shstr::find (const char *s) |
66 | { |
75 | { |
67 | if (!s) |
76 | if (!s) |