From 68d972d29d833d5a510622c645282e2a23e3689e Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Sun, 21 Jul 2019 23:56:49 -0400 Subject: [PATCH] Clarify comment of Strutil::splits/splitsv --- src/include/OpenImageIO/strutil.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/include/OpenImageIO/strutil.h b/src/include/OpenImageIO/strutil.h index 170d96c0bc..6b9810c01a 100644 --- a/src/include/OpenImageIO/strutil.h +++ b/src/include/OpenImageIO/strutil.h @@ -390,11 +390,12 @@ void OIIO_API split (string_view str, std::vector &result, void OIIO_API split (string_view str, std::vector &result, string_view sep = string_view(), int maxsplit = -1); -/// Split the contents of `str` using `sep` as the delimiter string (if -/// `sep` is "", any whitespace string is a separator). If `maxsplit > -1`, -/// at most `maxsplit` splits are performed. The result is returned as a -/// vector of std::string (for `splits()`) or a vector of string_view (for -/// `splitsv()`). +/// Split the contents of `str` using `sep` as the delimiter string. If +/// `sep` is "", any whitespace string is a separator. If `maxsplit > -1`, +/// at most `maxsplit` split fragments will be produced (for example, +/// maxsplit=2 will split at only the first separator, yielding at most two +/// fragments). The result is returned as a vector of std::string (for +/// `splits()`) or a vector of string_view (for `splitsv()`). OIIO_API std::vector splits (string_view str, string_view sep = "", int maxsplit = -1); OIIO_API std::vector