diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-11 01:04:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-11 01:04:21 +0000 |
commit | ef92357d79dc3caccab3c5b4e3fe31eb411bc22a (patch) | |
tree | 4795ba27da0c5b7232a97ee34695cbe7b61ca513 /include | |
parent | fceaaf7293181aa6f52422264961721f91173f80 (diff) | |
download | libdom-ef92357d79dc3caccab3c5b4e3fe31eb411bc22a.tar.gz libdom-ef92357d79dc3caccab3c5b4e3fe31eb411bc22a.tar.bz2 |
Make CharacterData struct public (within library)
Add Text.
svn path=/trunk/dom/; revision=3398
Diffstat (limited to 'include')
-rw-r--r-- | include/dom/core/text.h | 28 |
1 files changed, 28 insertions, 0 deletions
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 <jmb@netsurf-browser.org> + */ + +#ifndef dom_core_text_h_ +#define dom_core_text_h_ + +#include <stdbool.h> + +#include <dom/core/exceptions.h> + +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 |