michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsInternetCiter_h__ michael@0: #define nsInternetCiter_h__ michael@0: michael@0: #include "nscore.h" michael@0: michael@0: /** Mail citations using standard Internet style. michael@0: */ michael@0: class nsInternetCiter michael@0: { michael@0: public: michael@0: static nsresult GetCiteString(const nsAString & aInString, nsAString & aOutString); michael@0: michael@0: static nsresult StripCites(const nsAString & aInString, nsAString & aOutString); michael@0: michael@0: static nsresult Rewrap(const nsAString & aInString, michael@0: uint32_t aWrapCol, uint32_t aFirstLineOffset, michael@0: bool aRespectNewlines, michael@0: nsAString & aOutString); michael@0: michael@0: protected: michael@0: static nsresult StripCitesAndLinebreaks(const nsAString& aInString, nsAString& aOutString, michael@0: bool aLinebreaksToo, int32_t* aCiteLevel); michael@0: }; michael@0: michael@0: #endif //nsInternetCiter_h__ michael@0: