Utility library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas thermostat_fan_demo--fan mtsas ... more

NOTE: MTS-Utils has moved to GitHub. This version will not be updated. For updates, go to the GitHub version.

Files at this revision

API Documentation at this revision

Comitter:
Mike Fiore
Date:
Mon Mar 23 16:37:56 2015 -0500
Parent:
11:4f4966954da9
Child:
13:4709c2dfcd11
Commit message:
synchronize with internal git repo revision 9322e85a3e69a8beda2a83c3b9fbc2567dcca3af

Changed in this revision

MTSText.cpp Show annotated file Show diff for this revision Revisions of this file
MTSText.h Show annotated file Show diff for this revision Revisions of this file
--- a/MTSText.cpp	Fri Jan 23 16:53:33 2015 -0600
+++ b/MTSText.cpp	Mon Mar 23 16:37:56 2015 -0500
@@ -1,4 +1,5 @@
 #include "MTSText.h"
+#include "ctype.h"
 
 using namespace mts;
 
@@ -45,4 +46,16 @@
     std::string result = std::string(index, length);
     index += length;
     return result;
-}
\ No newline at end of file
+}
+
+std::string Text::toUpper(const std::string str)
+{
+    std::string ret = str;
+
+    for (unsigned int i = 0; i < ret.size(); i++)
+    {
+        ret[i] = toupper(ret[i]);
+    }
+
+    return ret;
+}
--- a/MTSText.h	Fri Jan 23 16:53:33 2015 -0600
+++ b/MTSText.h	Mon Mar 23 16:37:56 2015 -0500
@@ -48,6 +48,8 @@
     
     static std::string readString(char* index, int length);
 
+    static std::string toUpper(const std::string str);
+
 private:
     // Safety for class with only static methods
     Text();