version 1.94, 2005/12/01 18:35:07
|
version 1.95, 2006/01/27 19:23:44
|
|
|
void toUpper(); | void toUpper(); |
#endif | #endif |
| |
/** Compare the first n characters of the two strings. |
/** |
@param s1 First null-terminated string for the comparison. |
Compares the first n characters of two String objects. |
@param s2 Second null-terminated string for the comparison. |
@param s1 The first String to compare. |
@param n Number of characters to compare. |
@param s2 The second String to compare. |
@return Return -1 If s1 is lexographically less than s2; if they are |
@param n The maximum number of characters to compare. |
equivalent return 0; otherwise return 1. |
@return Returns a negative integer if the first n characters of s1 |
|
are lexographically less than s2, 0 if the first n characters of s1 |
|
and s2 are equal, and a positive integer otherwise. |
*/ | */ |
static int compare(const String& s1, const String& s2, Uint32 n); | static int compare(const String& s1, const String& s2, Uint32 n); |
| |
/** Compare two null-terminated strings. |
/** |
@param s1 First null-terminated string for the comparison. |
Compares two String objects. |
@param s2 Second null-terminated string for the comparison. |
@param s1 The first String to compare. |
@return Return -1 if s1 is less than s2; if equal return 0; |
@param s2 The second String to compare. |
otherwise return 1. |
@return Returns a negative integer if s1 is lexographically less |
|
than s2, 0 if s1 and s2 are equal, and a positive integer otherwise. |
| |
NOTE: Use the comparison operators <,<= > >= to compare | NOTE: Use the comparison operators <,<= > >= to compare |
String objects. | String objects. |
*/ | */ |
static int compare(const String& s1, const String& s2); | static int compare(const String& s1, const String& s2); |
| |
/** Compare two null-terminated strings but ignore case. |
/** |
@param s1 First null-terminated string for the comparison. |
Compares two String objects, ignoring case differences. |
@param s2 Second null-terminated string for the comparison. |
@param s1 The first String to compare. |
@return Return -1 if s1 is less than s2; if equal return 0; |
@param s2 The second String to compare. |
otherwise return 1. |
@return Returns a negative integer if s1 is lexographically less |
|
than s2, 0 if s1 and s2 are equal, and a positive integer otherwise. |
NOTE: Use the comparison operators <,<= > >= to compare |
(Case differences are ignored in all cases.) |
String objects. |
|
*/ | */ |
static int compareNoCase(const String& s1, const String& s2); | static int compareNoCase(const String& s1, const String& s2); |
| |