Agra-GPS / FreePilot_V2-3

Dependencies:   FreePilot PinDetect mbed-src

Fork of FreePilot_V2-2 by Agra-GPS

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