lib378.

lib378は予測テキスト入力用のライブラリです。
今すぐダウンロード

lib378. ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • GPL
  • 価格:
  • FREE
  • 出版社名:
  • Massimiliano Galanti
  • 出版社のWebサイト:

lib378. タグ


lib378. 説明

LIB378は予測テキスト入力用のライブラリです。 LIB378は予測テキスト入力用のライブラリです。 APIは非常にシンプルで、辞書の自動補完と、部分的と全マッチングの両方を提供します。プロジェクトは、入力デバイスからのテキスト入力を入力デバイスからのテキスト入力(携帯電話など)を入力できます。#include #include #include #include "378.h" char mygetch(void){int ch; Struct Termios Oldt、Newt。 TCGetAttr(Stdin_Fileno、Oldt); newt = oldt; NEWT.C_LFLAG =〜(ICANON |エコー); TCSetAttr(stdin_fileno、tcsanow、newt); ch = getchar(); TCSetAttr(stdin_fileno、tcsanow、oldt); Return Ch; L378_Declare(); L378_Keymap = { = '2'、 = '2'、 = '2'、 = '3' 、 = '3'、 = '3'、 = '4'、 = '4'、 = '4' 、 = '5'、 = '5'、 = '5'、 = '6'、 = '6' 、 = '6'、 = '7'、 = '7'、 = '7'、 = '7' 、 = '8'、 = '8'、 = '8'、 = '9'、 = '9' 、 = '9'、 = '9';静的ファイル* L378_Dictionary; int main(const int argc、const char * argv []){char c; char * s = null; if(!(L378_Dictionary = fopen( "compressed.dict"、 "r"))))))RETURN -1。 printf( "12 3n"); printf( "c abc defnn"); PRINTF( "45 6n"); printf( "GHI JKL MNONN"); PRINTF( "78 9n"); printf( "pqrs tuv wxyznn"); PRINTF( "タブ0 - n"); printf( "auto _ nextnn");間( 'n'!=(c = mygetch())){スイッチ(c){// case '0':// break;ケース 't':if((s = l378_match()))printf( "%sr"、s)。継続する;ケース ' - ':壊れてください。ケース '1':PRINTF( "TTTTR"); L378_POPC();壊す;ケース '2':ケース '3':ケース '4':ケース '5':ケース '6':ケース '7':ケース '8':ケース '9':ケース '9':L378_PUSHC(c);壊す;デフォルト:続行; if((s = l378_matche()))printf( "%sr"、s); else printf( "%sr"、l378_pattern); printf( "n")} fclose(L378_Dictionary);このリリースでは0. // EOFが新機能:・APIはクリーンアップされました。・圧縮アルゴリズムが改善されました。・オプションのBZ2サポートが追加されました。・携帯電話の例が更新されました。・マイナーコード修正が行われました。


lib378. 関連ソフトウェア