summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-03-24 14:04:32 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2012-03-24 14:04:32 +0000
commitd7145295066a58716ad27af741b6cb56daf3cf25 (patch)
tree6450ebdae3935f1be9912554594ed5b70dab1d67 /include
parent0246007a8b3c542d35069b23ce47cc40423a59ea (diff)
downloadlibdom-d7145295066a58716ad27af741b6cb56daf3cf25.tar.gz
libdom-d7145295066a58716ad27af741b6cb56daf3cf25.tar.bz2
API for comparing dom_string with lwc_string. Caseless version not implemented yet.
svn path=/trunk/libdom/; revision=13592
Diffstat (limited to 'include')
-rw-r--r--include/dom/core/string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h
index 31d8f42..84db35a 100644
--- a/include/dom/core/string.h
+++ b/include/dom/core/string.h
@@ -38,6 +38,11 @@ bool dom_string_isequal(const dom_string *s1, const dom_string *s2);
/* Case insensitively compare two DOM strings */
bool dom_string_caseless_isequal(const dom_string *s1, const dom_string *s2);
+/* Case sensitively compare DOM string and lwc_string */
+bool dom_string_lwc_isequal(const dom_string *s1, lwc_string *s2);
+/* Case insensitively compare DOM string and lwc_string */
+bool dom_string_caseless_lwc_isequal(const dom_string *s1, lwc_string *s2);
+
/* Get the index of the first occurrence of a character in a dom string */
uint32_t dom_string_index(dom_string *str, uint32_t chr);
/* Get the index of the last occurrence of a character in a dom string */