dcea29c283
...by moving the char8_t -> char reinterpret_cast out of any potential constexpr paths into a new TranslateId::getId. And demonstrate constexpr'ability by making the aCategories var in OApplicationIconControl::Fill (dbaccess/source/ui/app/AppIconControl.cxx) constexpr. (And there might be more such cases that could now be made constexpr.) Change-Id: I0b4e3292faf8f6b901f9b9e934e1aa6bf0f583ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157862 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
92 lines
3.4 KiB
Text
92 lines
3.4 KiB
Text
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <unotools/resmgr.hxx>
|
|
|
|
#define NC_(Context, String) TranslateId(Context, u8##String)
|
|
|
|
const TranslateId RID_UI_SYMBOLSET_NAMES[] =
|
|
{
|
|
NC_("RID_UI_SYMBOLSET_NAMES", "Greek"),
|
|
NC_("RID_UI_SYMBOLSET_NAMES", "Special")
|
|
};
|
|
|
|
const TranslateId RID_UI_SYMBOL_NAMES[] =
|
|
{
|
|
NC_("RID_UI_SYMBOL_NAMES", "alpha"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "ALPHA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "beta"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "BETA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "gamma"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "GAMMA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "delta"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "DELTA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "epsilon"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "EPSILON"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "zeta"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "ZETA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "eta"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "ETA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "theta"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "THETA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "iota"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "IOTA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "kappa"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "KAPPA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "lambda"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "LAMBDA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "mu"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "MU"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "nu"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "NU"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "xi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "XI"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "omicron"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "OMICRON"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "pi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "PI"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "rho"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "RHO"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "sigma"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "SIGMA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "tau"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "TAU"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "upsilon"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "UPSILON"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "phi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "PHI"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "chi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "CHI"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "psi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "PSI"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "omega"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "OMEGA"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "varepsilon"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "vartheta"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "varpi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "varrho"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "varsigma"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "varphi"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "element"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "noelement"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "strictlylessthan"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "strictlygreaterthan"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "notequal"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "identical"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "tendto"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "infinite"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "angle"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "perthousand"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "and"),
|
|
NC_("RID_UI_SYMBOL_NAMES", "or")
|
|
};
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|