The Wiring 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: hbarragan [at] uniandes.edu.co
Class
String
Name
contains()
Examples
String str1 = "CCCP";
// Tests to see if str1 is equal to str2
if(str1.contains("CP") == true) {
Serial.println("Contains"); // They are equal so this line will print
} else {
Serial.println("Not contains");
}
Description
Finds if the specified string is contained in this string. Returns true if the string s contained and false if not.