Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / xmlscript / xmlns.h
blob2e21b309812b674024dee1da149baf1111267ab5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #pragma once
21 #include <rtl/ustring.hxx>
23 inline constexpr OUString XMLNS_DIALOGS_URI = u"http://openoffice.org/2000/dialog"_ustr;
24 #define XMLNS_DIALOGS_PREFIX "dlg"
26 inline constexpr OUString XMLNS_SCRIPT_URI = u"http://openoffice.org/2000/script"_ustr;
27 #define XMLNS_SCRIPT_PREFIX "script"
29 inline constexpr OUString XMLNS_OOO_URI = u"http://openoffice.org/2004/office"_ustr;
30 inline constexpr OUString XMLNS_OOO_PREFIX = u"ooo"_ustr;
32 inline constexpr OUString XMLNS_LIBRARY_URI = u"http://openoffice.org/2000/library"_ustr;
33 #define XMLNS_LIBRARY_PREFIX "library"
35 inline constexpr OUString XMLNS_XLINK_URI = u"http://www.w3.org/1999/xlink"_ustr;
36 #define XMLNS_XLINK_PREFIX "xlink"
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */