Go Down

Topic: the new String library for the arduino software versions above 019 (Read 519 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: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy