Updating
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
template <class T>
|
||||
class Block;
|
||||
template <class T>
|
||||
class Array;
|
||||
class istream;
|
||||
class ostream;
|
||||
class String;
|
||||
@@ -71,6 +73,7 @@ public:
|
||||
String &trimLeft(void);
|
||||
void spaceTerm(void);
|
||||
String betweenString(char beginToken,char endToken)const;
|
||||
Block<String> split(char delimter)const;
|
||||
String substr(WORD startPosition,WORD endPosition)const;
|
||||
String substr(WORD startPosition)const;
|
||||
String extractDigits(void)const;
|
||||
@@ -231,7 +234,7 @@ int String::operator==(const String &someString)const
|
||||
{
|
||||
if(!mnpStr&&!someString.mnpStr)return 1;
|
||||
if(!mnpStr||!someString.mnpStr)return 0;
|
||||
return (!::strcmp(mnpStr,someString.mnpStr));
|
||||
return (0==::strcmp(mnpStr,someString.mnpStr));
|
||||
}
|
||||
|
||||
inline
|
||||
@@ -255,7 +258,7 @@ int String::operator==(const char *someCharStar)const
|
||||
{
|
||||
if(!mnpStr&&!someCharStar)return 1;
|
||||
if(!mnpStr||!someCharStar)return 0;
|
||||
return (!::strcmp(mnpStr,someCharStar));
|
||||
return (0==::strcmp(mnpStr,someCharStar));
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user