summaryrefslogtreecommitdiff
path: root/epan/strutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index 8cba9112fb..973bc8a06e 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -70,6 +70,19 @@ int get_token_len(const guchar *linep, const guchar *lineend,
WS_DLL_PUBLIC
gchar* format_text(const guchar *line, size_t len);
+/** Given a string, generate a string from it that shows non-printable
+ * characters as C-style escapes, and return a pointer to it.
+ *
+ * @param allocator The wmem scope
+ * @param line A pointer to the input string
+ * @param len The length of the input string
+ * @return A pointer to the formatted string
+ *
+ * @see tvb_format_text()
+ */
+WS_DLL_PUBLIC
+gchar* format_text_wmem(wmem_allocator_t* allocator, const guchar *line, size_t len);
+
/**
* Given a string, generate a string from it that shows non-printable
* characters as C-style escapes except a whitespace character