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

NyLPC_cFormatTextReader.c File Reference

NyLPC_cFormatTextReader.c File Reference

NyLPC_cFormatTextReader.c このクラスは、書式テキスト読み出し関数を集約します。 Created on: 2013/04/18 Author: nyatla. More...

Go to the source code of this file.

Functions

NyLPC_TInt32 NyLPC_cFormatTextReader_readWord (const NyLPC_TChar *buf, const NyLPC_TChar **top)
 [a-zA-Z0-9_-]で構成されるワードを取得します。 This function peek a word from string.
NyLPC_TInt32 NyLPC_cFormatTextReader_readIpAddr (const NyLPC_TChar *buf, NyLPC_TUInt8 *v)
 文字列からIPアドレスを取得します。 [:number:]\.
NyLPC_TInt32 NyLPC_cFormatTextReader_readUInt (const NyLPC_TChar *buf, NyLPC_TUInt32 *v)
 文字列から10進数の数値を読み出します。
NyLPC_TInt32 NyLPC_cFormatTextReader_readMacAddr (const NyLPC_TChar *buf, NyLPC_TUInt8 *v)
 文字列からMACアドレスを取得します。 [:hex:]:[:hex:]:[:hex:]:[:hex:]
NyLPC_TInt32 NyLPC_cFormatTextReader_seekSpace (const NyLPC_TChar *s)
 連続するスペースを読み飛ばします。

Detailed Description

NyLPC_cFormatTextReader.c このクラスは、書式テキスト読み出し関数を集約します。 Created on: 2013/04/18 Author: nyatla.

Definition in file NyLPC_cFormatTextReader.c.


Function Documentation

NyLPC_TInt32 NyLPC_cFormatTextReader_readIpAddr ( const NyLPC_TChar buf,
NyLPC_TUInt8 v 
)

文字列からIPアドレスを取得します。 [:number:]\.

[:number:]\.[:number:]\.[:number:] [:number:]は0-255までに制限されます。

Parameters:
vuint8[4]
Returns:
next pointer

Definition at line 35 of file NyLPC_cFormatTextReader.c.

NyLPC_TInt32 NyLPC_cFormatTextReader_readMacAddr ( const NyLPC_TChar buf,
NyLPC_TUInt8 v 
)

文字列からMACアドレスを取得します。 [:hex:]:[:hex:]:[:hex:]:[:hex:]

Parameters:
vuint8[6]

Definition at line 83 of file NyLPC_cFormatTextReader.c.

NyLPC_TInt32 NyLPC_cFormatTextReader_readUInt ( const NyLPC_TChar buf,
NyLPC_TUInt32 v 
)

文字列から10進数の数値を読み出します。

Returns:
読み出した文字数

Definition at line 65 of file NyLPC_cFormatTextReader.c.

NyLPC_TInt32 NyLPC_cFormatTextReader_readWord ( const NyLPC_TChar buf,
const NyLPC_TChar **  top 
)

[a-zA-Z0-9_-]で構成されるワードを取得します。 This function peek a word from string.

Returns:
size of seeked.

Definition at line 18 of file NyLPC_cFormatTextReader.c.

NyLPC_TInt32 NyLPC_cFormatTextReader_seekSpace ( const NyLPC_TChar s )

連続するスペースを読み飛ばします。

Returns:
読み飛ばしたスペース

Definition at line 112 of file NyLPC_cFormatTextReader.c.