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

utils/MTSText.h

Committer:
mfiore
Date:
2013-12-19
Revision:
39:6e94520a3217
Parent:
4:6561c9128c6f
Child:
56:e5e5351f14b3

File content as of revision 39:6e94520a3217:

#ifndef MTSTEXT_H_
#define MTSTEXT_H_

#include <string>
#include <vector>
#include <stddef.h>

namespace mts {

class Text {
    
    public:
        static std::string getLine(const std::string& source, const size_t& start, size_t& cursor);
        static std::vector<std::string> split(const std::string& str, char delimiter, int limit = 0);
        static std::vector<std::string> split(const std::string& str, const std::string& delimiter, int limit = 0);
        
    private:
        Text();
        Text(const Text& other);
        Text& operator=(const Text& other);
};

}
#endif