From e541463b9b5764ab7e85a2b06afdf9018419b1b2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 24 Mar 2012 14:04:32 +0000 Subject: API for comparing dom_string with lwc_string. Caseless version not implemented yet. svn path=/trunk/libdom/; revision=13592 --- include/dom/core/string.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3