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_cUrlEncode.h Source File

NyLPC_cUrlEncode.h

00001 /*
00002  * NyLPC_cUrlEncode.h
00003  *
00004  *  Created on: 2013/06/11
00005  *      Author: nyatla
00006  */
00007 
00008 #ifndef NYLPC_CURLENCODE_H_
00009 #define NYLPC_CURLENCODE_H_
00010 
00011 #include "NyLPC_stdlib.h"
00012 #include <stdarg.h>
00013 #include <ctype.h>
00014 
00015 typedef struct NyLPC_TcUrlEncode NyLPC_TcUrlEncode_t;
00016 
00017 typedef NyLPC_TUInt32 NyLPC_TcUrlEncode_ST;
00018 #define NyLPC_TcUrlEncode_ST_NEXT   2
00019 #define NyLPC_TcUrlEncode_ST_DONE   1
00020 #define NyLPC_TcUrlEncode_ST_ERROR  0
00021 
00022 struct NyLPC_TcUrlEncode
00023 {
00024     /**一時バッファ */
00025     NyLPC_TChar v;
00026     /** バッファに蓄積してる長さ */
00027     NyLPC_TInt8 _len;
00028 };
00029 
00030 NyLPC_TBool NyLPC_cUrlEncode_initialize(NyLPC_TcUrlEncode_t* i_inst);
00031 
00032 #define NyLPC_cUrlEncode_finalize(i_inst)
00033 
00034 #define NyLPC_cUrlEncode_reset(i_inst) (i_inst)->_len=0
00035 
00036 
00037 NyLPC_TcUrlEncode_ST NyLPC_cUrlEncode_decode(NyLPC_TcUrlEncode_t* i_inst,NyLPC_TChar c,NyLPC_TChar* out);
00038 
00039 
00040 #endif /* NYLPC_CURLENCODE_H_ */