Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/i18npool/source/localedata/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 1 kB image not shown  

Quelle  genstaticheader.pl   Sprache: Shell

 
#!/usr/bin/perl -w # -*- tab-width: 4; indent-tabs-mode: nil;
#
# 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/.
#

my @FUNCS = qw(
    getAllCalendars
    getAllCurrencies
    getAllFormats0
    getBreakIteratorRules
    getCollationOptions
    getCollatorImplementation
    getContinuousNumberingLevels
    getDateAcceptancePatterns
    getFollowPageWords
    getForbiddenCharacters
    getIndexAlgorithm
    getLCInfo
    getLocaleItem
    getOutlineNumberingLevels
    getReservedWords
    getSearchOptions
    getTransliterations
    getUnicodeScripts
    getAllFormats1
    );

print 'extern "C" {

';

foreach my $lang (@ARGV) {
    foreach my $func (@FUNCS) {
        if ($func eq 'getAllFormats1') {
            if ($lang eq 'en_US') {
                printf("void %s_%s();\n", $func, $lang);
            }
        } else {
            printf("void %s_%s();\n", $func, $lang);
        }
    }
}

print '
static const struct {
    const char *pLocale;
';
foreach my $func (@FUNCS) {
    printf(" void (*%s)();\n", $func);
}
print '} aLibTable[] = {
';

foreach my $lang (@ARGV) {
    printf(" {\n");
    printf(" \"%s\",\n", $lang);
    foreach my $func (@FUNCS) {
        if ($func eq 'getAllFormats1') {
            if ($lang eq 'en_US') {
                printf(" %s_%s,\n", $func, $lang);
            } else {
                printf(" 0,\n");
            }
        } else {
            printf(" %s_%s,\n", $func, $lang);
        }
    }
    printf(" }%s\n", ($lang ne $ARGV[$#ARGV]) ? ',' : '');
}

print '};

}
';

# vim:set shiftwidth=4 softtabstop=4 expandtab:

Messung V0.5
C=91 H=89 G=89

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.