Coverage Report

Created: 2025-11-16 09:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/basic/source/sbx/sbxres.cxx
Line
Count
Source
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
 * This file is part of the LibreOffice project.
4
 *
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/.
8
 *
9
 * This file incorporates work covered by the following license notice:
10
 *
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 .
18
 */
19
20
21
#include "sbxres.hxx"
22
23
#include <rtl/ustring.hxx>
24
25
constexpr OUString pSbxRes[] = {
26
    u"Empty"_ustr,
27
    u"Null"_ustr,
28
    u"Integer"_ustr,
29
    u"Long"_ustr,
30
    u"Single"_ustr,
31
    u"Double"_ustr,
32
    u"Currency"_ustr,
33
    u"Date"_ustr,
34
    u"String"_ustr,
35
    u"Object"_ustr,
36
    u"Error"_ustr,
37
    u"Boolean"_ustr,
38
    u"Variant"_ustr,
39
    u"Any"_ustr,
40
    u"Type14"_ustr,
41
    u"Type15"_ustr,
42
    u"Char"_ustr,
43
    u"Byte"_ustr,
44
    u"UShort"_ustr,
45
    u"ULong"_ustr,
46
    u"Long64"_ustr,
47
    u"ULong64"_ustr,
48
    u"Int"_ustr,
49
    u"UInt"_ustr,
50
    u"Void"_ustr,
51
    u"HResult"_ustr,
52
    u"Pointer"_ustr,
53
    u"DimArray"_ustr,
54
    u"CArray"_ustr,
55
    u"Any"_ustr,
56
    u"LpStr"_ustr,
57
    u"LpWStr"_ustr,
58
    u" As "_ustr,
59
    u"Optional "_ustr,
60
    u"Byref "_ustr,
61
62
    u"Name"_ustr,
63
    u"Parent"_ustr,
64
    u"Application"_ustr,
65
    u"Count"_ustr,
66
    u"Add"_ustr,
67
    u"Item"_ustr,
68
    u"Remove"_ustr,
69
70
    u"Error "_ustr,   // with blank!
71
    u"False"_ustr,
72
    u"True"_ustr
73
};
74
75
OUString GetSbxRes( StringId nId )
76
0
{
77
0
    return  ( nId > StringId::LastValue ) ? u"???"_ustr : pSbxRes[ static_cast<int>( nId ) ];
78
0
}
79
80
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */