summaryrefslogtreecommitdiff
path: root/src/KM_util.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2013-02-08 19:11:58 +0000
committerjhurst <>2013-02-08 19:11:58 +0000
commit9998b893b47f111f41c4f0fcf1067efe5b7a62f3 (patch)
treeef455067287c17ebb9f82ecf3d27d134823c1edb /src/KM_util.h
parentb3fa00a9f37ecc7c2bef6276aae0ea67d1ddbeb3 (diff)
big change rollup
Diffstat (limited to 'src/KM_util.h')
-rwxr-xr-xsrc/KM_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/KM_util.h b/src/KM_util.h
index f4de54e..a7667fc 100755
--- a/src/KM_util.h
+++ b/src/KM_util.h
@@ -534,6 +534,14 @@ namespace Kumu
hexdump(buf.RoData(), buf.Length());
}
+ // Locates the first occurrence of the null-terminated string s2 in the string s1, where not more
+ // than n characters are searched. Characters that appear after a `\0' character are not searched.
+ // Reproduced here from BSD for portability.
+ const char *km_strnstr(const char *s1, const char *s2, size_t n);
+
+ // Split the input string into tokens using the given separator. If the separator is not found the
+ // entire string will be returned as a single-item list.
+ std::list<std::string> km_token_split(const std::string& str, const std::string& separator);
} // namespace Kumu