char string library. There is a character string splitting function.
CharUtil.h@1:fc299d8c1c7e, 2017-12-03 (annotated)
- Committer:
- tichise
- Date:
- Sun Dec 03 06:19:23 2017 +0000
- Revision:
- 1:fc299d8c1c7e
- Parent:
- StringUtil.h@0:c6bf0554e2f3
- Child:
- 3:a69058b7a85e
change name
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tichise | 1:fc299d8c1c7e | 1 | #ifndef MBED_CHAR_UTIL_H |
tichise | 1:fc299d8c1c7e | 2 | #define MBED_CHAR_UTIL_H |
tichise | 0:c6bf0554e2f3 | 3 | |
tichise | 0:c6bf0554e2f3 | 4 | #include "mbed.h" |
tichise | 0:c6bf0554e2f3 | 5 | #include <math.h> |
tichise | 0:c6bf0554e2f3 | 6 | #include <string> |
tichise | 0:c6bf0554e2f3 | 7 | #include <string.h> |
tichise | 0:c6bf0554e2f3 | 8 | #include <list> |
tichise | 0:c6bf0554e2f3 | 9 | |
tichise | 1:fc299d8c1c7e | 10 | class CharUtil |
tichise | 0:c6bf0554e2f3 | 11 | { |
tichise | 0:c6bf0554e2f3 | 12 | public: |
tichise | 1:fc299d8c1c7e | 13 | CharUtil(); |
tichise | 1:fc299d8c1c7e | 14 | int split(char *str, const char *delim, char *outlist[]); |
tichise | 0:c6bf0554e2f3 | 15 | |
tichise | 0:c6bf0554e2f3 | 16 | |
tichise | 0:c6bf0554e2f3 | 17 | private: |
tichise | 0:c6bf0554e2f3 | 18 | }; |
tichise | 0:c6bf0554e2f3 | 19 | |
tichise | 0:c6bf0554e2f3 | 20 | #endif |