| 1 |
/*! |
| 2 |
\file |
| 3 |
\brief “ú–{Œê•ÏŠ·ƒNƒ‰ƒX |
| 4 |
|
| 5 |
\author Satofumi KAMIMURA |
| 6 |
|
| 7 |
$Id$ |
| 8 |
*/ |
| 9 |
|
| 10 |
#include "JpTextConverter.h" |
| 11 |
#include "RomanConvertTable.h" |
| 12 |
#include "KanaConvertTable.h" |
| 13 |
|
| 14 |
using namespace beego; |
| 15 |
|
| 16 |
|
| 17 |
struct JpTextConverter::pImpl { |
| 18 |
const Uint16* convert_table; |
| 19 |
size_t table_length; |
| 20 |
|
| 21 |
pImpl(const Uint16* convertTable, size_t tableLength) |
| 22 |
: convert_table(convertTable), table_length(tableLength) { |
| 23 |
} |
| 24 |
}; |
| 25 |
|
| 26 |
|
| 27 |
JpTextConverter::JpTextConverter(ConvertType type) |
| 28 |
: pimpl((type == Roman) ? |
| 29 |
new pImpl(RomanTable[0][0], ROMAN_CONVERT_SIZE_MAX) : |
| 30 |
new pImpl(KanaTable[0][0], KANA_CONVERT_SIZE_MAX)) { |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
JpTextConverter::~JpTextConverter(void) { |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
void JpTextConverter::clear(void) { |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
void JpTextConverter::setConvertBuffer(const std::vector<Uint16>& buffer) { |
| 43 |
// !!! |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
void JpTextConverter::getConvertBuffer(std::vector<Uint16>& buffer) { |
| 48 |
// !!! |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
bool JpTextConverter::addChar(char ch) { |
| 53 |
// !!! |
| 54 |
return false; |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
bool JpTextConverter::moveLeft(void) { |
| 59 |
// !!! |
| 60 |
return false; |
| 61 |
} |
| 62 |
|
| 63 |
|
| 64 |
bool JpTextConverter::moveRight(void) { |
| 65 |
// !!! |
| 66 |
return false; |
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
bool JpTextConverter::moveUp(void) { |
| 71 |
// !!! |
| 72 |
return false; |
| 73 |
} |
| 74 |
|
| 75 |
|
| 76 |
bool JpTextConverter::moveDown(void) { |
| 77 |
// !!! |
| 78 |
return false; |
| 79 |
} |
| 80 |
|
| 81 |
|
| 82 |
bool JpTextConverter::escapePressed(void) { |
| 83 |
// !!! |
| 84 |
return false; |
| 85 |
} |
| 86 |
|
| 87 |
|
| 88 |
bool JpTextConverter::deleteBack(void) { |
| 89 |
// !!! |
| 90 |
return false; |
| 91 |
} |
| 92 |
|
| 93 |
|
| 94 |
bool JpTextConverter::deleteCurrent(void) { |
| 95 |
// !!! |
| 96 |
return false; |
| 97 |
} |
| 98 |
|
| 99 |
|
| 100 |
bool JpTextConverter::convertInput(void) { |
| 101 |
// !!! |
| 102 |
return false; |
| 103 |
} |