From a036dfb0d375b0c8c7dd014ad224f0980b09793c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 11 Jul 2007 01:04:21 +0000 Subject: Make CharacterData struct public (within library) Add Text. svn path=/trunk/dom/; revision=3398 --- include/dom/core/text.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/dom/core/text.h (limited to 'include') diff --git a/include/dom/core/text.h b/include/dom/core/text.h new file mode 100644 index 0000000..6f1f4d1 --- /dev/null +++ b/include/dom/core/text.h @@ -0,0 +1,28 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell + */ + +#ifndef dom_core_text_h_ +#define dom_core_text_h_ + +#include + +#include + +struct dom_characterdata; +struct dom_string; +struct dom_text; + +dom_exception dom_text_split_text(struct dom_text *text, + unsigned long offset, struct dom_text **result); +dom_exception dom_text_get_is_element_content_whitespace( + struct dom_text *text, bool *result); +dom_exception dom_text_get_whole_text(struct dom_text *text, + struct dom_string **result); +dom_exception dom_text_replace_whole_text(struct dom_text *text, + struct dom_string *content, struct dom_text **result); + +#endif -- cgit v1.2.3