Debian Codegraph @

xbmc/input/InputCodingTableKorean.h

raw
1 /*
2 * Copyright (C) 2005-2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "InputCodingTable.h"
12
13 #include <map>
14 #include <string>
15 #include <vector>
16
17 class CInputCodingTableKorean : public IInputCodingTable
18 {
19 public:
20 CInputCodingTableKorean();
21 ~CInputCodingTableKorean() override = default;
22
23 bool GetWordListPage(const std::string& strCode, bool isFirstPage) override;
24 std::vector<std::wstring> GetResponse(int) override;
25
26 void SetTextPrev(const std::string& strTextPrev) override;
27 std::string ConvertString(const std::string& strCode) override;
28 int GetType() override { return TYPE_CONVERT_STRING; }
29
30 protected:
31 int MergeCode(int choseong, int jungseong, int jongseong);
32 std::wstring InputToKorean(const std::wstring& input);
33
34 private:
35 std::vector<std::wstring> m_words;
36 std::string m_strTextPrev;
37 };