summaryrefslogtreecommitdiff
path: root/include/dom
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-21 18:20:29 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-21 18:20:29 +0100
commit0b32f2dd635c7c770a685eaa05837729c08debc1 (patch)
tree9efa0030e2412001596b84fa77571179f620c210 /include/dom
parent24488f376260d3fe3ea69b59d4d82702d9aa492c (diff)
downloadlibdom-0b32f2dd635c7c770a685eaa05837729c08debc1.tar.gz
libdom-0b32f2dd635c7c770a685eaa05837729c08debc1.tar.bz2
DOMString: Add toupper and tolower methods
Diffstat (limited to 'include/dom')
-rw-r--r--include/dom/core/string.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dom/core/string.h b/include/dom/core/string.h
index b9b41a9..f2a6122 100644
--- a/include/dom/core/string.h
+++ b/include/dom/core/string.h
@@ -102,6 +102,14 @@ dom_exception dom_string_replace(dom_string *target,
dom_string *source, uint32_t i1, uint32_t i2,
dom_string **result);
+/* Generate an uppercase version of the given string */
+dom_exception dom_string_toupper(dom_string *source, bool ascii_only,
+ dom_string **upper);
+
+/* Generate an lowercase version of the given string */
+dom_exception dom_string_tolower(dom_string *source, bool ascii_only,
+ dom_string **lower);
+
/* Calculate a hash value from a dom string */
uint32_t dom_string_hash(dom_string *str);