Debian Codegraph @

src/common/text_priv.h

raw symbols SCIP
1 /*
2 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * "David Niemoller" <[email protected]>
21 * Lukas Kuklinek <[email protected]>
22 */
23
24 #pragma once
25 #ifndef OSCAP_TEXT_PRIV_H_
26 #define OSCAP_TEXT_PRIV_H_cxx . . $ `src/common/text_priv.h:26:9`!
27
28 #include "public/oscap_text.h"cxx . . $ `<file>/src/common/public/oscap_text.h`/
29 #include "elements.h"cxx . . $ `<file>/src/common/elements.h`/
30 #include <libxml/xmlreader.h>
31 #include <libxml/xmlwriter.h>
32
33
34 /**
35 * oscap_text traits
36 * @see oscap_text
37 */
38 struct oscap_text_traitscxx . . $ oscap_text_traits# {
39 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! override_givencxx . . $ oscap_text_traits#override_given. : 1; ///< override attribute given
40 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! htmlcxx . . $ oscap_text_traits#html. : 1; ///< XHTML-formatted text
41 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! can_overridecxx . . $ oscap_text_traits#can_override. : 1; ///< can override parent's value
42 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! can_substitutecxx . . $ oscap_text_traits#can_substitute. : 1; ///< can proces the sub element and such
43 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! overridescxx . . $ oscap_text_traits#overrides. : 1; ///< overrides parent's value
44 };
45
46 struct oscap_textcxx . . $ oscap_text# {
47 char *langcxx . . $ oscap_text#lang.;
48 char *textcxx . . $ oscap_text#text.;
49 struct oscap_text_traitscxx . . $ oscap_text_traits# traitscxx . . $ oscap_text#traits.;
50 };
51
52 struct oscap_listcxx . . $ oscap_list#;
53
54 /// Basic traits for plain text
55 extern const struct oscap_text_traitscxx . . $ oscap_text_traits# OSCAP_TEXT_TRAITS_PLAINcxx . . $ OSCAP_TEXT_TRAITS_PLAIN.;
56 /// Basic traits for HTML text
57 extern const struct oscap_text_traitscxx . . $ oscap_text_traits# OSCAP_TEXT_TRAITS_HTMLcxx . . $ OSCAP_TEXT_TRAITS_HTML.;
58
59 /**
60 * full-featured constructor
61 * @param traits text features
62 * @param string text data
63 * @param lang text language
64 */
65 struct oscap_textcxx . . $ oscap_text# *oscap_text_new_fullcxx . . $ oscap_text_new_full(c8482059268dd5a5).(struct oscap_text_traitscxx . . $ oscap_text_traits# traits, const char *string, const char *lang);
66
67 /**
68 * Return a new string by parsing an xml element
69 */
70 struct oscap_textcxx . . $ oscap_text# *oscap_text_new_parsecxx . . $ oscap_text_new_parse(fc91cb6a8c9d272a).(struct oscap_text_traitscxx . . $ oscap_text_traits# traits, xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader);
71
72 xmlNodecxx . . $ xmlNode# *oscap_text_to_domcxx . . $ oscap_text_to_dom(884e3243567ea9a2).(struct oscap_textcxx . . $ oscap_text# *text, xmlNodecxx . . $ xmlNode# *parent, const char *elname);
73 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oscap_text_exportcxx . . $ oscap_text_export(fbf191e55686259b).(struct oscap_textcxx . . $ oscap_text# *text, xmlTextWritercxx . . $ xmlTextWriter# *writer, const char *elname);
74 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oscap_textlist_exportcxx . . $ oscap_textlist_export(2181939542e556de).(struct oscap_text_iteratorcxx . . $ oscap_text_iterator# *texts, xmlTextWritercxx . . $ xmlTextWriter# *writer, const char *elname);
75
76 char *_xhtml_to_plaintextcxx . . $ _xhtml_to_plaintext(a8b8e32347182212).(const char *xhtml_in);
77
78
79 #endif