Debian Codegraph @

modules/pinyinhelper/pinyinhelper_public.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2017-2017 CSSlayer <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 */
7 #ifndef _PINYINHELPER_PINYINHELPER_PUBLIC_H_
8 #define _PINYINHELPER_PINYINHELPER_PUBLIC_H_
9
10 #include <fcitx/addoninstance.h>
11 #include <string>
12 #include <vector>
13
14 FCITX_ADDON_DECLARE_FUNCTION(PinyinHelper, lookup,
15 std::vector<std::string>(uint32_t));
16 /* return with fullpinyin (in form of ΓΌ), pinyin with tone, and tone */
17 FCITX_ADDON_DECLARE_FUNCTION(
18 PinyinHelper, fullLookup,
19 std::vector<std::tuple<std::string, std::string, int>>(uint32_t));
20 FCITX_ADDON_DECLARE_FUNCTION(PinyinHelper, lookupStroke,
21 std::vector<std::pair<std::string, std::string>>(
22 const std::string &, int limit));
23 FCITX_ADDON_DECLARE_FUNCTION(PinyinHelper, reverseLookupStroke,
24 std::string(const std::string &));
25 FCITX_ADDON_DECLARE_FUNCTION(PinyinHelper, prettyStrokeString,
26 std::string(const std::string &));
27 FCITX_ADDON_DECLARE_FUNCTION(PinyinHelper, loadStroke, void());
28
29 #endif // _PINYINHELPER_PINYINHELPER_PUBLIC_H_