From f7c976d9b83f28cd3a1aa326e6006499ceb9275d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 6 Feb 2012 18:00:39 +0000 Subject: Add constructor which auto-interns data svn path=/trunk/libdom/; revision=13427 --- include/dom/core/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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, -- cgit v1.2.3