A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Committer:
sgodinez
Date:
Wed Dec 11 16:49:21 2013 +0000
Revision:
4:6561c9128c6f
Child:
39:6e94520a3217
modified Cellular class. added Text utilities.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sgodinez 4:6561c9128c6f 1 #ifndef MTSTEXT_H_
sgodinez 4:6561c9128c6f 2 #define MTSTEXT_H_
sgodinez 4:6561c9128c6f 3
sgodinez 4:6561c9128c6f 4 #include <string>
sgodinez 4:6561c9128c6f 5 #include <vector>
sgodinez 4:6561c9128c6f 6 #include <stddef.h>
sgodinez 4:6561c9128c6f 7
sgodinez 4:6561c9128c6f 8 class Text {
sgodinez 4:6561c9128c6f 9
sgodinez 4:6561c9128c6f 10 public:
sgodinez 4:6561c9128c6f 11 static std::string getLine(const std::string& source, const size_t& start, size_t& cursor);
sgodinez 4:6561c9128c6f 12 static std::vector<std::string> split(const std::string& str, char delimiter, int limit = 0);
sgodinez 4:6561c9128c6f 13 static std::vector<std::string> split(const std::string& str, const std::string& delimiter, int limit = 0);
sgodinez 4:6561c9128c6f 14
sgodinez 4:6561c9128c6f 15 private:
sgodinez 4:6561c9128c6f 16 Text();
sgodinez 4:6561c9128c6f 17 Text(const Text& other);
sgodinez 4:6561c9128c6f 18 Text& operator=(const Text& other);
sgodinez 4:6561c9128c6f 19 };
sgodinez 4:6561c9128c6f 20
sgodinez 4:6561c9128c6f 21 #endif