Go Down

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


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