forked from mia/Aegisub
Document kana_table.*
Originally committed to SVN as r3368.
This commit is contained in:
parent
6b8ac0d0ea
commit
d899c816b8
2 changed files with 15 additions and 33 deletions
|
@ -41,13 +41,11 @@
|
|||
|
||||
|
||||
|
||||
/// @brief DOCME
|
||||
///
|
||||
/// @brief Constructor
|
||||
KanaTable::KanaTable()
|
||||
{
|
||||
|
||||
// Regular kana usage and combinations
|
||||
|
||||
Insert(L"\u3042",L"\u30a2",L"a");
|
||||
Insert(L"\u3044",L"\u30a4",L"i");
|
||||
Insert(L"\u3046",L"\u30a6",L"u");
|
||||
|
@ -269,8 +267,7 @@ KanaTable::KanaTable()
|
|||
}
|
||||
|
||||
|
||||
/// @brief DOCME
|
||||
///
|
||||
/// @brief Destructor
|
||||
KanaTable::~KanaTable()
|
||||
{
|
||||
// Do nothing
|
||||
|
@ -278,14 +275,12 @@ KanaTable::~KanaTable()
|
|||
|
||||
|
||||
|
||||
/// @brief DOCME
|
||||
/// @param hira
|
||||
/// @param kata
|
||||
/// @param hep
|
||||
/// @brief Add Hiragana, Katakana and hepburn romaji tuple.
|
||||
/// @param hira Hiragana to add.
|
||||
/// @param kata Katakana to add.
|
||||
/// @param hep Hepburn romaji to add.
|
||||
///
|
||||
void KanaTable::Insert(const wchar_t *hira, const wchar_t *kata, const wchar_t *hep)
|
||||
{
|
||||
entries.push_back(KanaEntry(hira,kata,hep));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -43,33 +43,24 @@
|
|||
|
||||
|
||||
|
||||
/// DOCME
|
||||
/// @class KanaEntry
|
||||
/// @brief DOCME
|
||||
///
|
||||
/// DOCME
|
||||
/// @brief Base class for Kana + Romaji tuples.
|
||||
class KanaEntry {
|
||||
public:
|
||||
|
||||
/// DOCME
|
||||
/// Hiragana
|
||||
wxString hiragana;
|
||||
|
||||
/// DOCME
|
||||
/// Katakana
|
||||
wxString katakana;
|
||||
|
||||
/// DOCME
|
||||
/// Hepburn romaji.
|
||||
wxString hepburn;
|
||||
|
||||
|
||||
/// @brief DOCME
|
||||
///
|
||||
/// @brief Constructor
|
||||
KanaEntry() {}
|
||||
|
||||
/// @brief DOCME
|
||||
/// @param hira
|
||||
/// @param kata
|
||||
/// @param hep
|
||||
///
|
||||
KanaEntry(const wxString &hira, const wxString &kata, const wxString &hep) {
|
||||
hiragana = hira;
|
||||
katakana = kata;
|
||||
|
@ -79,21 +70,17 @@ public:
|
|||
|
||||
|
||||
|
||||
/// DOCME
|
||||
/// @class KanaTable
|
||||
/// @brief DOCME
|
||||
/// @brief Table of Hiragana, Katakana and Hepburn romaji tuples.
|
||||
///
|
||||
/// DOCME
|
||||
class KanaTable {
|
||||
private:
|
||||
void Insert(const wchar_t *hira, const wchar_t *kata, const wchar_t *hep);
|
||||
|
||||
public:
|
||||
|
||||
/// DOCME
|
||||
/// Memory list.
|
||||
std::list<KanaEntry> entries;
|
||||
KanaTable();
|
||||
~KanaTable();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue