SplitString.h File Reference
Include dependency graph for SplitString.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
unsigned | splitString (String &what, char delim, Vector< int > &splits) |
split a delimited string list of integers into an array More... | |
unsigned | splitString (String &what, char delim, Vector< String > &splits) |
split a delimited string list into an array More... | |
Function Documentation
◆ splitString() [1/2]
split a delimited string list of integers into an array
- Parameters
-
what delim splits
- Return values
-
unsigned number of items returned in splits (same as splits.count())
- Note
- leading/trailing whitespace is removed from 'what' before parsing example: " 1,2,3,4,5" returns [1, 2, 3, 4, 5]
◆ splitString() [2/2]
split a delimited string list into an array
- Parameters
-
what delim splits
- Return values
-
unsigned number of items returned in splits (same as splits.count())
- Note
- leading/trailing whitespace is removed from 'what' before parsing example: " a,b,c,d,e" returns ["a", "b", "c", "d", "e"]