Bug 686775 - Matching external API version of StripWhitespace with internal version by adding stripping of \b. r=bsmedberg
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user