String::endsWith() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class | String
Name | ### endsWith()
Examples |
    String str1 = String("CCCP");
    String str2 = String("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("don't");
    }
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 | Application

Updated on November 01, 2009 01:04:12pm PST