diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-12-22 10:24:04 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-12-22 10:24:04 +0000 |
commit | 70d69c686d657be26c94e176b002f7f754d4cb19 (patch) | |
tree | afd88cc4a079573cc76d7adbbb0abf6fa93e1d60 /include/dom/core | |
parent | 59d42e4810ab1f077043c3f152480a5f5deb0d3f (diff) | |
download | libdom-70d69c686d657be26c94e176b002f7f754d4cb19.tar.gz libdom-70d69c686d657be26c94e176b002f7f754d4cb19.tar.bz2 |
Move dom_string data accessing functions to public header.
svn path=/trunk/libdom/; revision=13322
Diffstat (limited to 'include/dom/core')
-rw-r--r-- | include/dom/core/string.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h index 1ff4f75..31ee54c 100644 --- a/include/dom/core/string.h +++ b/include/dom/core/string.h @@ -44,6 +44,16 @@ uint32_t dom_string_rindex(dom_string *str, uint32_t chr); /* Get the length, in characters, of a dom string */ uint32_t dom_string_length(dom_string *str); +/** + * Get the raw character data of the dom_string. + * @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); + +/* Get the byte length of this dom_string */ +size_t dom_string_byte_length(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 */ |