added IsDigit to string

This commit is contained in:
rickg 1998-05-11 23:27:35 +00:00
parent baa898b013
commit 0b6bd9d390
8 changed files with 60 additions and 4 deletions

View File

@ -1084,6 +1084,18 @@ PRBool nsString::IsSpace(PRUnichar ch) {
return PR_FALSE;
}
/**-------------------------------------------------------
*
*
* @update gess 3/31/98
* @param
* @return isalpha
*------------------------------------------------------*/
PRBool nsString::IsDigit(PRUnichar ch) {
// XXX i18n
return PRBool((ch >= '0') && (ch <= '9'));
}
/**-------------------------------------------------------
* This method trims characters found in aTrimSet from
* either end of the underlying string.

View File

@ -133,7 +133,9 @@ class NS_BASE nsString {
PRBool aEliminateTrailing=PR_TRUE);
static PRBool IsSpace(PRUnichar ch);
static PRBool IsAlpha(PRUnichar ch);
//@}
static PRBool IsDigit(PRUnichar ch);
//@}
///searching methods...
//@{

View File

@ -1084,6 +1084,18 @@ PRBool nsString::IsSpace(PRUnichar ch) {
return PR_FALSE;
}
/**-------------------------------------------------------
*
*
* @update gess 3/31/98
* @param
* @return isalpha
*------------------------------------------------------*/
PRBool nsString::IsDigit(PRUnichar ch) {
// XXX i18n
return PRBool((ch >= '0') && (ch <= '9'));
}
/**-------------------------------------------------------
* This method trims characters found in aTrimSet from
* either end of the underlying string.

View File

@ -133,7 +133,9 @@ class NS_BASE nsString {
PRBool aEliminateTrailing=PR_TRUE);
static PRBool IsSpace(PRUnichar ch);
static PRBool IsAlpha(PRUnichar ch);
//@}
static PRBool IsDigit(PRUnichar ch);
//@}
///searching methods...
//@{

View File

@ -1084,6 +1084,18 @@ PRBool nsString::IsSpace(PRUnichar ch) {
return PR_FALSE;
}
/**-------------------------------------------------------
*
*
* @update gess 3/31/98
* @param
* @return isalpha
*------------------------------------------------------*/
PRBool nsString::IsDigit(PRUnichar ch) {
// XXX i18n
return PRBool((ch >= '0') && (ch <= '9'));
}
/**-------------------------------------------------------
* This method trims characters found in aTrimSet from
* either end of the underlying string.

View File

@ -133,7 +133,9 @@ class NS_BASE nsString {
PRBool aEliminateTrailing=PR_TRUE);
static PRBool IsSpace(PRUnichar ch);
static PRBool IsAlpha(PRUnichar ch);
//@}
static PRBool IsDigit(PRUnichar ch);
//@}
///searching methods...
//@{

View File

@ -1084,6 +1084,18 @@ PRBool nsString::IsSpace(PRUnichar ch) {
return PR_FALSE;
}
/**-------------------------------------------------------
*
*
* @update gess 3/31/98
* @param
* @return isalpha
*------------------------------------------------------*/
PRBool nsString::IsDigit(PRUnichar ch) {
// XXX i18n
return PRBool((ch >= '0') && (ch <= '9'));
}
/**-------------------------------------------------------
* This method trims characters found in aTrimSet from
* either end of the underlying string.

View File

@ -133,7 +133,9 @@ class NS_BASE nsString {
PRBool aEliminateTrailing=PR_TRUE);
static PRBool IsSpace(PRUnichar ch);
static PRBool IsAlpha(PRUnichar ch);
//@}
static PRBool IsDigit(PRUnichar ch);
//@}
///searching methods...
//@{