startsWith()

[StringObject Function]

Description

Tests whether or not a String starts with the characters of another String.

Syntax

myString.startsWith(myString2)

Parameters

myString, myString2: a variable of type String.

Returns

true: if myString starts with the characters of myString2.
false: otherwise

See also

  • Language c_str()

  • Language charAt()

  • Language compareTo()

  • Language concat()

  • Language endsWith()

  • Language equals()

  • Language equalsIgnoreCase()

  • Language getBytes()

  • Language indexOf()

  • Language lastIndexOf()

  • Language length()

  • Language remove()

  • Language replace()

  • Language reserve()

  • Language setCharAt()

  • Language substring()

  • Language toCharArray()

  • Language toDouble()

  • Language toFloat()

  • Language toInt()

  • Language toLowerCase()

  • Language toUpperCase()

  • Language trim()