libcamera: utils: Add string splitter utility function

Add a utils::split() function that splits a string for the purpose of
iterating over substrings. It returns an object of unspecified type that
can be used in range-based for loops.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2020-02-06 21:10:15 +02:00 committed by Kieran Bingham
parent b3dbccd328
commit 31a05b70aa
3 changed files with 98 additions and 0 deletions

View file

@ -880,6 +880,7 @@ EXCLUDE_SYMBOLS = libcamera::BoundMethodArgs \
libcamera::BoundMethodStatic \
libcamera::SignalBase \
libcamera::*::Private \
libcamera::*::details::* \
std::*
# The EXAMPLE_PATH tag can be used to specify one or more files or directories