|
write functions
[Parser]
Detailed Description
This module contains all writing functions.
|
Functions |
xostream & | write_qname (xostream &xos, const xstring &localPart, const xstring &prefix) |
xostream & | write_ns_att_name (xostream &xos, const xstring &xstr) |
xostream & | write_xml_decl (xostream &xos) |
xostream & | write_pe_def (xostream &xos, const xstring &entity_value, const xstring &system_literal, const xstring &pub_id_literal) |
xostream & | write_entity_def (xostream &xos, const xstring &entity_value, const xstring &system_literal, const xstring &pub_id_literal, const xstring &ndata_name) |
xostream & | write_pe_decl (xostream &xos, const xstring &entity_name, const xstring &entity_value, const xstring &system_literal, const xstring &pubid_literal) |
xostream & | write_ge_decl (xostream &xos, const xstring &entity_name, const xstring &entity_value, const xstring &system_literal, const xstring &pubid_literal, const xstring &ndata_name) |
xostream & | write_prolog (xostream &xos) |
XIMOL_EXPORT xostream & | write_string_with_forbidden_serie (xostream &xos, const xstring &xstr, bool(*is_good_xchar)(xchar_t), const::std::string &forbidden_string, const::std::string &entity_test, const::std::string &entity_definition) |
XIMOL_EXPORT xostream & | write_space (xostream &xos) |
XIMOL_EXPORT xostream & | write_name (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_ncname (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_char_data (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_nm_token (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_char_ref (xostream &xos, xchar_t xc) |
XIMOL_EXPORT xostream & | write_entity_ref (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_pe_reference (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_pubid_literal (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_system_literal (xostream &xos, const xstring &xstr, xchar_t quote=0x0022) |
XIMOL_EXPORT xostream & | write_entity_value (xostream &xos, const xstring &xstr, xchar_t quote=0x0022) |
XIMOL_EXPORT xostream & | write_att_value (xostream &xos, const xstring &xstr, xchar_t quote=0x0022) |
XIMOL_EXPORT xostream & | write_attribute (xostream &xos, const xstring &name, const xstring &att_value, const xstring &short_ns, xchar_t quote=0x0022) |
XIMOL_EXPORT xostream & | write_comment (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_pi_target (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_pi (xostream &xos, const xstring &pi_target, const xstring &xext) |
XIMOL_EXPORT xostream & | write_cd_end (xostream &xos) |
XIMOL_EXPORT xostream & | write_cd_start (xostream &xos) |
XIMOL_EXPORT xostream & | write_cdata (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_cd_sect (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_eq (xostream &xos) |
XIMOL_EXPORT xostream & | write_version_num (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_version_info (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_enc_name (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_encoding_decl (xostream &xos, const xstring &xstr) |
XIMOL_EXPORT xostream & | write_sd_decl (xostream &xos, bool standalone) |
XIMOL_EXPORT xostream & | write_xml_decl (xostream &xos, const xstring &version_info, const xstring &encoding_decl=L"", const xstring &standalone_decl=L"") |
XIMOL_EXPORT xostream & | write_external_id (xostream &xos, const xstring &system_literal, const xstring &pub_id_literal=xstring()) |
XIMOL_EXPORT xostream & | write_public_id (xostream &xos, const xstring &pub_id_literal) |
XIMOL_EXPORT xostream & | write_notation_decl (xostream &xos, const xstring &name, const xstring &system_literal, const xstring &pub_id_literal) |
XIMOL_EXPORT xostream & | write_open_stag (xostream &xos, const xstring &name, const XIMOL_XML_NAMESPACE_PATH::attributes &att, const xstring &uri=xstring()) |
XIMOL_EXPORT xostream & | write_open_stag (xostream &xos, const xstring &name, const xstring &uri=xstring()) |
XIMOL_EXPORT xostream & | write_stag (xostream &xos, const xstring &name, const XIMOL_XML_NAMESPACE_PATH::attributes &att, const xstring &uri=xstring()) |
XIMOL_EXPORT xostream & | write_stag (xostream &xos, const xstring &name) |
XIMOL_EXPORT xostream & | write_stag (xostream &xos, const xstring &name, const xstring &uri) |
XIMOL_EXPORT xostream & | write_etag (xostream &xos, const xstring &name, const xstring &uri) |
XIMOL_EXPORT xostream & | write_etag (xostream &xos, const xstring &name) |
XIMOL_EXPORT xostream & | write_etag (xostream &xos) |
XIMOL_EXPORT xostream & | write_ndata_decl (xostream &xos, const xstring &name) |
Function Documentation
|
name ::= (Letter | '_' | ':') (NameChar)*
Definition at line 576 of file utils.cpp.
References _(), is_name(), XIMOL_AS_ERROR, XIMOL_THROW, and xstring.
Referenced by write_entity_ref(), write_ge_decl(), write_ndata_decl(), write_notation_decl(), write_pe_decl(), write_pe_reference(), and write_pi_target().
|
|
- Parameters:
-
xstr | : NCName.
NSAttName ::= PrefixedAttName | DefaultAttName
PrefixedAttName ::= 'xmlns:' NCName
DefaultAttName ::= 'xmlns'
|
Definition at line 763 of file utils.cpp.
References _(), is_ns_att_name(), write_xchar(), XCHAR_COLON, XCHAR_LATIN_SMALL_LETTER_L, XCHAR_LATIN_SMALL_LETTER_M, XCHAR_LATIN_SMALL_LETTER_N, XCHAR_LATIN_SMALL_LETTER_S, XCHAR_LATIN_SMALL_LETTER_X, XIMOL_AS_ERROR, XIMOL_THROW, and xstring.
Referenced by attributes::write(). |
|
PI ::= '<?' pi_target (S (Char* - (Char* '?>' Char*)))? '?>'
Definition at line 1607 of file utils.cpp.
References _(), is_char(), is_string_with_forbidden_serie(), write_pi_target(), write_space(), write_xchar(), XCHAR_LESS_THAN_SIGN, XCHAR_QUESTION_MARK, XIMOL_AS_ERROR, XIMOL_THROW, and xstring.
|
|
S ::= (x20 | x9 | xD | xA)
Definition at line 546 of file utils.cpp.
References write_xchar(), and xchar_t.
Referenced by attributes::write(), write_encoding_decl(), write_external_id(), write_ge_decl(), write_ndata_decl(), write_notation_decl(), write_pe_decl(), write_pi(), write_public_id(), write_sd_decl(), write_version_info(), and write_xml_decl().
|
XIMOL_EXPORT xostream& write_string_with_forbidden_serie |
( |
xostream & |
xos, |
|
|
const xstring & |
xstr, |
|
|
bool(* |
is_good_xchar)(xchar_t), |
|
|
const::std::string & |
forbidden_string, |
|
|
const::std::string & |
entity_test, |
|
|
const::std::string & |
entity_definition |
|
) |
|
|
|
ForbiddenSerie ::= SetByFunction - (SetByFunction forbidden_string SetByFunction)
- Parameters:
-
xos | : the ouput stream. |
xstr | : the string to write |
is_good_xchar | : function for testing char |
forbidden_string | : the forbidden string |
entity_test | : name of the tested string (for example : "CharData"). For error message. |
entity_definition | : Definition For error message. (for example : "CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)"). |
Definition at line 235 of file utils.cpp.
References _(), is_string_with_forbidden_serie(), XIMOL_AS_ERROR, XIMOL_THROW, and xstring. |
|
|
|