зеркало из https://github.com/mozilla/gecko-dev.git
didn't want to check this in per darin
This commit is contained in:
Родитель
4a2133fd7a
Коммит
aa98f0a05f
|
@ -127,6 +127,14 @@ public:
|
||||||
***
|
***
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
/** Compute the string length of s
|
||||||
|
@param s the string in question
|
||||||
|
@return the length of s
|
||||||
|
*/
|
||||||
|
static PRUint32 strlen(const char* s) {
|
||||||
|
return PRUint32(::strlen(s));
|
||||||
|
}
|
||||||
|
|
||||||
/// Compare s1 and s2.
|
/// Compare s1 and s2.
|
||||||
static PRInt32 strcmp(const char* s1, const char* s2) {
|
static PRInt32 strcmp(const char* s1, const char* s2) {
|
||||||
return PRInt32(PL_strcmp(s1, s2));
|
return PRInt32(PL_strcmp(s1, s2));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче