Loading...
Pages: [1]   Go Down
Author Topic: the new String library for the arduino software versions above 019  (Read 155 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: 97
Posts: 6376
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

Pages: [1]   Go Up
Print
 
Jump to: