1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-20 13:54:14 +01:00

these should be const (more latrE)

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40194
This commit is contained in:
David Anderson 2006-04-29 09:34:08 +00:00
parent ebca331ae4
commit 372e05b369

View File

@ -96,7 +96,7 @@ public:
v[0] = '\0'; v[0] = '\0';
} }
int compare (const char *d) int compare (const char *d) const
{ {
if (!v) if (!v)
return strcmp("", d); return strcmp("", d);
@ -105,7 +105,7 @@ public:
} }
//Added this for amxx inclusion //Added this for amxx inclusion
bool empty() bool empty() const
{ {
if (!v) if (!v)
return true; return true;
@ -116,7 +116,7 @@ public:
return false; return false;
} }
size_t size() size_t size() const
{ {
if (v) if (v)
return strlen(v); return strlen(v);
@ -124,7 +124,7 @@ public:
return 0; return 0;
} }
int find(const char c, int index = 0) int find(const char c, int index = 0) const
{ {
int len = static_cast<int>(size()); int len = static_cast<int>(size());
if (len < 1) if (len < 1)
@ -143,7 +143,7 @@ public:
return npos; return npos;
} }
bool is_space(int c) bool is_space(int c) const
{ {
if (c == '\f' || c == '\n' || if (c == '\f' || c == '\n' ||
c == '\t' || c == '\r' || c == '\t' || c == '\r' ||