Bumping manifests a=b2g-bump
[gecko.git] / xpcom / string / nsLiteralString.h
blob8c8cb12368859637c02304c1e418bec07ac0a496
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsLiteralString_h___
8 #define nsLiteralString_h___
10 #include "nscore.h"
11 #include "nsString.h"
13 // declare nsLiteralString
14 #include "string-template-def-unichar.h"
15 #include "nsTLiteralString.h"
16 #include "string-template-undef.h"
18 // declare nsLiteralCString
19 #include "string-template-def-char.h"
20 #include "nsTLiteralString.h"
21 #include "string-template-undef.h"
23 #include "mozilla/Char16.h"
25 #define NS_MULTILINE_LITERAL_STRING(s) static_cast<const nsLiteralString&>(nsLiteralString(s))
26 #define NS_MULTILINE_LITERAL_STRING_INIT(n,s) n(s)
27 #define NS_NAMED_MULTILINE_LITERAL_STRING(n,s) const nsLiteralString n(s)
29 #define NS_LITERAL_STRING(s) static_cast<const nsLiteralString&>(nsLiteralString(MOZ_UTF16(s)))
30 #define NS_LITERAL_STRING_INIT(n,s) n(MOZ_UTF16(s))
31 #define NS_NAMED_LITERAL_STRING(n,s) const nsLiteralString n(MOZ_UTF16(s))
33 #define NS_LITERAL_CSTRING(s) static_cast<const nsLiteralCString&>(nsLiteralCString(s))
34 #define NS_LITERAL_CSTRING_INIT(n,s) n(s)
35 #define NS_NAMED_LITERAL_CSTRING(n,s) const nsLiteralCString n(s)
37 #endif /* !defined(nsLiteralString_h___) */