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 nsLiteralString_h___ michael@0: #define nsLiteralString_h___ michael@0: michael@0: #include "nscore.h" michael@0: #include "nsString.h" michael@0: michael@0: // declare nsLiteralString michael@0: #include "string-template-def-unichar.h" michael@0: #include "nsTLiteralString.h" michael@0: #include "string-template-undef.h" michael@0: michael@0: // declare nsLiteralCString michael@0: #include "string-template-def-char.h" michael@0: #include "nsTLiteralString.h" michael@0: #include "string-template-undef.h" michael@0: michael@0: #include "mozilla/Char16.h" michael@0: michael@0: #define NS_MULTILINE_LITERAL_STRING(s) static_cast(nsLiteralString(s)) michael@0: #define NS_MULTILINE_LITERAL_STRING_INIT(n,s) n(s) michael@0: #define NS_NAMED_MULTILINE_LITERAL_STRING(n,s) const nsLiteralString n(s) michael@0: michael@0: #define NS_LITERAL_STRING(s) static_cast(nsLiteralString(MOZ_UTF16(s))) michael@0: #define NS_LITERAL_STRING_INIT(n,s) n(MOZ_UTF16(s)) michael@0: #define NS_NAMED_LITERAL_STRING(n,s) const nsLiteralString n(MOZ_UTF16(s)) michael@0: michael@0: #define NS_LITERAL_CSTRING(s) static_cast(nsLiteralCString(s)) michael@0: #define NS_LITERAL_CSTRING_INIT(n,s) n(s) michael@0: #define NS_NAMED_LITERAL_CSTRING(n,s) const nsLiteralCString n(s) michael@0: michael@0: #endif /* !defined(nsLiteralString_h___) */