Go Down

Topic: the new String library for the arduino software versions above 019 (Read 341 times) previous topic - next topic

edwlee

What is the new String code name for "contains"? Thanks

johnwasser

From the built-in Help->Reference

string.indexOf(val)
string.indexOf(val, from)

Returns -1 if not found.

See also:

lastIndexOf()
boolean startsWith()
boolean endsWith()
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up