BLC 사용 예제 - 안드로어 번역기
BLC 라이브러리 다운로드
안드로어를
한글로 번역해주는 예제 코드입니다.
예제 코드 보기
- #include
- #include
- #include
-
- #include
- #include
-
- int main()
- {
- using namespace blc::console;
- using namespace blc::han;
- using namespace blc::ustr;
- using namespace std;
-
- SetCharacterWidthFunc(mk_wcwidth_cjk);
-
-
- ConsoleWindow::SetTitle(L"안드로어 번역기 예제"s);
-
- auto& tbl = JamoTable::GetCompatibilityTable();
- auto str = u8""s;
- ConsoleWindow::Space space(0, 0, 60, 1);
-
- cout << u8"입력한 안드로어를 한국어로 번역합니다."s << endl << endl;
- space.set_y(ConsoleWindow::WhereY());
-
- ConsoleWindow::ModifyStr(str, space);
- cout << endl << endl;
-
- str = QwertyToKSX5002(str);
-
-
- str = NFC_kblv(str, tbl);
-
-
- cout << str << endl << endl;
-
- return 0;
- }
예제 코드 접기
실행 결과
