aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/support/string.h')
-rw-r--r--src/core/support/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/support/string.h b/src/core/support/string.h
index a4da485dce..efb11778b9 100644
--- a/src/core/support/string.h
+++ b/src/core/support/string.h
@@ -37,6 +37,7 @@
#include <stddef.h>
#include <grpc/support/port_platform.h>
+#include <grpc/support/slice_buffer.h>
#ifdef __cplusplus
extern "C" {
@@ -78,6 +79,9 @@ char *gpr_strjoin(const char **strs, size_t nstrs, size_t *total_length);
char *gpr_strjoin_sep(const char **strs, size_t nstrs, const char *sep,
size_t *total_length);
+/** Split \a str at separator \a sep. */
+gpr_slice_buffer *gpr_strsplit(const char *str, const char *sep);
+
/* A vector of strings... for building up a final string one piece at a time */
typedef struct {
char **strs;