diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-12-22 14:16:52 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-12-22 14:16:52 +0000 |
commit | 16d0ec5f28356115e89f0eb43473d4e931371edf (patch) | |
tree | c743138dee41593341c57f8ccd9a00422743b304 /include | |
parent | be8b6fd2ad772d49a99cccf9f1c7244747f1ac18 (diff) | |
download | libdom-16d0ec5f28356115e89f0eb43473d4e931371edf.tar.gz libdom-16d0ec5f28356115e89f0eb43473d4e931371edf.tar.bz2 |
Fix comparison of interned and non-interned dom strings. Constify dom string data accessers.
svn path=/trunk/libdom/; revision=13327
Diffstat (limited to 'include')
-rw-r--r-- | include/dom/core/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h index 31ee54c..9d37547 100644 --- a/include/dom/core/string.h +++ b/include/dom/core/string.h @@ -49,10 +49,10 @@ uint32_t dom_string_length(dom_string *str); * @note: This function is just provided for the convenience of accessing the * raw C string character, no change on the result string is allowed. */ -const char *dom_string_data(dom_string *str); +const char *dom_string_data(const dom_string *str); /* Get the byte length of this dom_string */ -size_t dom_string_byte_length(dom_string *str); +size_t dom_string_byte_length(const dom_string *str); /* Get the UCS-4 character at position index, the index should be in * [0, length), and length can be get by calling dom_string_length |