diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-06 18:00:39 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-06 18:00:39 +0000 |
commit | 2558d1626468cfae7c9406509315dfbe10c16e83 (patch) | |
tree | 89c68720e620ebbf59b8cafc3f5b3d09dbb9d8e0 /include/dom/core/string.h | |
parent | ebd543e0bc08a7df3c0c9a4bbb575f2dcafd270b (diff) | |
download | libdom-2558d1626468cfae7c9406509315dfbe10c16e83.tar.gz libdom-2558d1626468cfae7c9406509315dfbe10c16e83.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.h | 2 |
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, |