SplitString/developers

From Wiring

Jump to: navigation, search
This page is intended as a reference for core developers only, and the content is only changed after a consensus has been reached through discussion of any such changes. Please use the Discussion page to talk about any changes or issues you have with the current implementation.
splitString()
Classification Implementation of c++ new/delete operators
Suggested location WMemory.h
C++ required No
Timing constraints None
Version introduced 1.0 (0100)
Framework dependencies None
Prototype(s)
int splitString(String &what, int delim,  Vector<long> &splits)
Required? Yes
Issues None


Contents

Description

Splits a string around matches of the given delimiter char and returns the result in a Vector.

Black Box Input

The string to be split, the char used as delimiter and the vector of int or long numbers with the result are given.

Black Box Output

Nothing is returned. The string is split if possible.

Overloading

None. Single function only.

Notes

The string to split must be made in the format in the example: "numeric value 1'delim'numeric value 2'delim'...'delim'numeric value n".

Proposed Changes

Personal tools