This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: mbed/UrlReader.cpp
- Revision:
- 36:f02596009a02
- Parent:
- 17:f29e1ca90e3d
- Child:
- 66:ee7866efe5e6
--- a/mbed/UrlReader.cpp Tue May 14 13:07:02 2013 +0000 +++ b/mbed/UrlReader.cpp Thu May 16 16:06:46 2013 +0000 @@ -12,6 +12,15 @@ { return NyLPC_cUrlReader_getPath(this->_ref_str,&path,(NyLPC_TInt32*)&l); } + bool UrlReader::isPathEqual(const char* path) + { + const char* p; + int l; + if(!NyLPC_cUrlReader_getPath(this->_ref_str,&p,(NyLPC_TInt32*)&l)){ + return false; + } + return ((l==strlen(path)) && (strncmp(p,path,l)==0)); + } /** * @param i_ref_str * URL text for read.