OSDN Git Service

git-svn-id: http://svn.osdn.jp/svnroot/mimic/trunk@198 47198e57-cb75-475f-84c4-a814cd...
[mimic/MiMicSDK.git] / lib / src / include / NyLPC_stdlib.h
index 24a9450..09059c9 100644 (file)
@@ -442,10 +442,19 @@ NyLPC_TBool NyLPC_TUInt32ArrayPtr_seek(struct NyLPC_TUInt32ArrayPtr* i_struct,Ny
  */\r
 void NyLPC_TUInt32ArrayPtr_setBuf(struct NyLPC_TUInt32ArrayPtr* i_struct,NyLPC_TUInt32* i_ptr,NyLPC_TUInt16 i_len);\r
 \r
-#ifdef __cplusplus\r
-}\r
-#endif /* __cplusplus */\r
 \r
+/**\r
+ * TextとIDのテーブルです。\r
+ */\r
+struct NyLPC_TTextIdTbl{\r
+       const char* n;\r
+       NyLPC_TUInt8 id;\r
+};\r
+\r
+/**\r
+ * テーブルを検索してマッチしたIDを返します。テーブルのnがNULLの要素で愁嘆します。\r
+ */\r
+NyLPC_TUInt8 NyLPC_TTextIdTbl_getMatchId(const NyLPC_TChar* i_str,const struct NyLPC_TTextIdTbl i_tbl[]);\r
 \r
 /*********************************************************************************\r
  * standard function\r
@@ -453,10 +462,20 @@ void NyLPC_TUInt32ArrayPtr_setBuf(struct NyLPC_TUInt32ArrayPtr* i_struct,NyLPC_T
 void NyLPC_itoa(int i_n,char* o_out,int i_digit);\r
 void NyLPC_reverse(char* s);\r
 \r
+\r
+\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif /* __cplusplus */\r
+\r
+\r
+\r
 /*********************************************************************************\r
  *\r
  *********************************************************************************/\r
 \r
+#include "../NyLPC_cMiMicEnv.h"\r
 #include "../NyLPC_cRingBuffer.h"\r
 #include "../NyLPC_cPtrTbl.h"\r
 #include "../NyLPC_cFifoBuffer.h"\r