Pages: [1]   Go Down
Author Topic: the new String library for the arduino software versions above 019  (Read 267 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8103
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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()
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: