File: testisocodes.cpp

package info (click to toggle)
fcitx5 5.1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,356 kB
  • sloc: cpp: 75,670; sh: 1,770; xml: 1,545; python: 1,052; ansic: 71; makefile: 11
file content (20 lines) | stat: -rw-r--r-- 446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * SPDX-FileCopyrightText: 2020-2020 CSSlayer <wengxt@gmail.com>
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 *
 */
#include "fcitx-utils/log.h"
#include "config.h"
#include "im/keyboard/isocodes.h"

using namespace fcitx;

int main() {
    IsoCodes isocodes;
    isocodes.read(ISOCODES_ISO639_JSON);
    const auto *entry = isocodes.entry("eng");
    FCITX_ASSERT(entry);
    FCITX_ASSERT(entry->iso_639_1_code == "en");
    return 0;
}