added helper method to token

This commit is contained in:
peterl%netscape.com 1999-06-10 05:27:01 +00:00
parent 781a1b7b49
commit 5c11b505d7
3 changed files with 21 additions and 12 deletions

View File

@ -66,10 +66,13 @@ struct nsCSSToken {
nsCSSToken();
PRBool isDimension() {
return (PRBool)
((eCSSToken_Dimension == mType) ||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
PRBool IsDimension() {
return PRBool((eCSSToken_Dimension == mType) ||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
}
PRBool IsSymbol(PRUnichar aSymbol) {
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
}
void AppendToString(nsString& aBuffer);

View File

@ -66,10 +66,13 @@ struct nsCSSToken {
nsCSSToken();
PRBool isDimension() {
return (PRBool)
((eCSSToken_Dimension == mType) ||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
PRBool IsDimension() {
return PRBool((eCSSToken_Dimension == mType) ||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
}
PRBool IsSymbol(PRUnichar aSymbol) {
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
}
void AppendToString(nsString& aBuffer);

View File

@ -66,10 +66,13 @@ struct nsCSSToken {
nsCSSToken();
PRBool isDimension() {
return (PRBool)
((eCSSToken_Dimension == mType) ||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
PRBool IsDimension() {
return PRBool((eCSSToken_Dimension == mType) ||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
}
PRBool IsSymbol(PRUnichar aSymbol) {
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
}
void AppendToString(nsString& aBuffer);