Currently a function to compress white spaces inside the string exists for nsAString and a similar function is needed for nsACString too. xpcom/tests/external/TestMinStringAPI.cpp has a place holder which only trims the string and does not actually compress.
Created attachment 304913 [details] [diff] [review] Adds CompressWhitespace(nsACString) The new function CompressWhitespace(nsACString) is just a clone of CompressWhitespace(nsAString) that already exists.
Resolution => WONTFIX as discussed with Benjamin on the IRC, there are no other users for this function and hence it should probably be somewhere inside the mailnews code itself.
Comment on attachment 304913 [details] [diff] [review] Adds CompressWhitespace(nsACString) Talking on IRC, I don't like this function and would prefer that it end up in mailnews-specific code.