sourcehook/sh_string.h
changeset 284 33f790f43a1a
parent 262 5c2892f5b935
child 294 0d87bc8606f8
     1.1 --- a/sourcehook/sh_string.h	Sat Feb 10 00:36:21 2007 +0000
     1.2 +++ b/sourcehook/sh_string.h	Sat Feb 10 04:52:18 2007 +0000
     1.3 @@ -263,7 +263,7 @@
     1.4  		v[len] = 0;
     1.5  	}
     1.6  
     1.7 -	String substr(unsigned int index, int num = npos)
     1.8 +	String substr(unsigned int index, int num = npos) const
     1.9  	{
    1.10  		if (!v)
    1.11  		{
    1.12 @@ -322,7 +322,7 @@
    1.13  
    1.14  	}
    1.15  
    1.16 -	char operator [] (unsigned int index)
    1.17 +	char operator [] (unsigned int index) const
    1.18  	{
    1.19  		if (index > size() || !v)
    1.20  		{
    1.21 @@ -332,7 +332,7 @@
    1.22  		}
    1.23  	}
    1.24  
    1.25 -	int at(int a)
    1.26 +	int at(int a) const
    1.27  	{
    1.28  		if (a < 0 || a >= (int)size() || !v)
    1.29  			return -1;