String library.

Dependents:   CheckSum RN41 RealTimeClock TVZ_MU_Seminar ... more

Revision:
4:17e03f0747d9
Parent:
2:14f3ff21096e
Child:
5:9afdff23f890
--- a/StrLib.cpp	Wed Sep 02 04:20:46 2015 +0000
+++ b/StrLib.cpp	Wed Sep 02 04:47:08 2015 +0000
@@ -80,6 +80,17 @@
         return false;
     return id == idx;
 }
+bool strCompareComplete(string trg, string cmp)
+{
+    int idx= trg.find(cmp);
+    if(idx == string::npos)
+        return false;
+    idx= cmp.find(trg);
+    if(idx == string::npos)
+        return false;
+    
+    return true;
+}
 
 string toAlpanumeric(string str, bool toLarge)
 {