summaryrefslogtreecommitdiff
path: root/include/dom/core/string.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2012-02-06 18:00:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2012-02-06 18:00:39 +0000
commitf7c976d9b83f28cd3a1aa326e6006499ceb9275d (patch)
tree89c68720e620ebbf59b8cafc3f5b3d09dbb9d8e0 /include/dom/core/string.h
parent4044a2de24d1392f8578aa945bdaffaad12ca05e (diff)
downloadlibdom-f7c976d9b83f28cd3a1aa326e6006499ceb9275d.tar.gz
libdom-f7c976d9b83f28cd3a1aa326e6006499ceb9275d.tar.bz2
Add constructor which auto-interns data
svn path=/trunk/libdom/; revision=13427
Diffstat (limited to 'include/dom/core/string.h')
-rw-r--r--include/dom/core/string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h
index 9d37547..31d8f42 100644
--- a/include/dom/core/string.h
+++ b/include/dom/core/string.h
@@ -26,6 +26,8 @@ void dom_string_unref(dom_string *str);
/* Create a DOM string from a string of characters */
dom_exception dom_string_create(const uint8_t *ptr, size_t len,
dom_string **str);
+dom_exception dom_string_create_interned(const uint8_t *ptr, size_t len,
+ dom_string **str);
/* Obtain an interned representation of a dom string */
dom_exception dom_string_intern(dom_string *str,