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: FreePilot PinDetect mbed-src
Fork of FreePilot_V2-2 by
Serial/stringUtils.h
- Committer:
- maximbolduc
- Date:
- 2015-01-16
- Revision:
- 26:dc00998140af
- Child:
- 27:9ac59b261d87
File content as of revision 26:dc00998140af:
#ifndef STRING_UTILS_H #define STRING_UTILS_H #include <string> #include <vector> using namespace std; /** * Trims whitespace characters from beginning and end of given string. */ string trim(const string& src, const string& c = " \r\n"); /** * Tokenize given string delimmted by given delimter into a vector of seprate strings. */ vector<string> tokenize(const string& str, const string& delimiters = " "); #endif