String
 
  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  

endsWith()

   
Examples  
String str1 = "CCCP"; 
String str2 = "CP"; 
// Tests to see if str1 ends with str2 
if(str1.endsWith(str2) == true) { 
  Serial.println("Ends with");  // The string ends with so this line will print 
} else { 
  Serial.println("Not"); 
} 

Description   Tests if this string ends with the specified string. Returns true if the string ends with the specified string and false if not.
   
Syntax  
endsWith(str)
   
Parameters  
str   String: any valid character string

 

   
Returns   Boolean
   
Usage   Web & Application