This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NyLPC_cFormatTextReader.h Source File

NyLPC_cFormatTextReader.h

Go to the documentation of this file.
00001 /**
00002  * @file
00003  * NyLPC_cFormattextReader.h
00004  * 書式テキストを読み出す為の関数群です。
00005  *  Created on: 2013/04/20
00006  *      Author: nyatla
00007  */
00008 #include "NyLPC_stdlib.h"
00009 
00010 #ifndef NYLPC_CFORMATTEXTREADER_H_
00011 #define NYLPC_CFORMATTEXTREADER_H_
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif /* __cplusplus */
00015 
00016 /**
00017  * [a-zA-Z0-9_-]で構成されるワードを取得します。
00018  * This function peek a word from string.
00019  * @return
00020  * size of seeked.
00021  */
00022 NyLPC_TInt32 NyLPC_cFormatTextReader_readWord(const NyLPC_TChar* buf,const NyLPC_TChar** top);
00023 
00024 /**
00025  * 文字列からIPアドレスを取得します。
00026  * [:number:]\.[:number:]\.[:number:]\.[:number:]
00027  * [:number:]は0-255までに制限されます。
00028  * @param v
00029  * uint8[4]
00030  * @return
00031  * next pointer
00032  */
00033 NyLPC_TInt32 NyLPC_cFormatTextReader_readIpAddr(const NyLPC_TChar* buf,NyLPC_TUInt8* v);
00034 
00035 /**
00036  * 文字列からMACアドレスを取得します。
00037  * [:hex:]:[:hex:]:[:hex:]:[:hex:]
00038  * @param v
00039  * uint8[6]
00040  */
00041 NyLPC_TInt32 NyLPC_cFormatTextReader_readMacAddr(const NyLPC_TChar* buf,NyLPC_TUInt8* v);
00042 
00043 /**
00044  * 連続するスペースを読み飛ばします。
00045  */
00046 NyLPC_TInt32 NyLPC_cFormatTextReader_seekSpace(const NyLPC_TChar* s);
00047 
00048 /**
00049  * 文字列から10進数の数値を読み出します。
00050  * @return
00051  * 読み飛ばしたスペース
00052  */
00053 NyLPC_TInt32 NyLPC_cFormatTextReader_readUInt(const NyLPC_TChar* buf,NyLPC_TUInt32* v);
00054 
00055 #ifdef __cplusplus
00056 }
00057 #endif /* __cplusplus */
00058 #endif /* NYLPC_CFORMATTEXTREADER_H_ */