Bug 686775 - Matching external API version of StripWhitespace with internal version by adding stripping of \b. r=bsmedberg

This commit is contained in:
Atul Aggarwal
2011-11-06 20:22:02 +05:30
parent 16eff36813
commit 2a17cafa83

View File

@@ -199,7 +199,7 @@ public:
/** /**
* Strip whitespace characters from the string. * Strip whitespace characters from the string.
*/ */
NS_HIDDEN_(void) StripWhitespace() { StripChars(" \t\n\r"); } NS_HIDDEN_(void) StripWhitespace() { StripChars("\b\t\r\n "); }
NS_HIDDEN_(void) Trim(const char *aSet, bool aLeading = true, NS_HIDDEN_(void) Trim(const char *aSet, bool aLeading = true,
bool aTrailing = true); bool aTrailing = true);
@@ -542,7 +542,7 @@ public:
/** /**
* Strip whitespace characters from the string. * Strip whitespace characters from the string.
*/ */
NS_HIDDEN_(void) StripWhitespace() { StripChars(" \t\r\n"); } NS_HIDDEN_(void) StripWhitespace() { StripChars("\b\t\r\n "); }
NS_HIDDEN_(void) Trim(const char *aSet, bool aLeading = true, NS_HIDDEN_(void) Trim(const char *aSet, bool aLeading = true,
bool aTrailing = true); bool aTrailing = true);