mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
added IsDigit to string
This commit is contained in:
parent
baa898b013
commit
0b6bd9d390
@ -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.
|
||||
|
@ -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...
|
||||
//@{
|
||||
|
@ -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.
|
||||
|
@ -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...
|
||||
//@{
|
||||
|
@ -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.
|
||||
|
@ -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...
|
||||
//@{
|
||||
|
@ -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.
|
||||
|
@ -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...
|
||||
//@{
|
||||
|
Loading…
Reference in New Issue
Block a user