Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
util/lex.h
- Committer:
- xinlei
- Date:
- 2015-04-22
- Revision:
- 94:010b0f7a0a1a
- Parent:
- 93:61d44636f020
- Child:
- 98:e369fc75c000
File content as of revision 94:010b0f7a0a1a:
#ifndef LEX_H
#define LEX_H
#include <stddef.h>
struct Token
{
enum TokType {
INT,
FLOAT,
STRING,
NONE,
ERROR
} type;
const char *p;
size_t len;
};
const char* skipHTTPHeader(const char* p);
const char* lex(const char*, Token&);
size_t strncpyEscape(char*, const char*, size_t);
#endif /* LEX_H */
