|
Detailed Description
This module contains the user interface functions.
Function Documentation
|
Drop next element This function drop the nest element if the stream is at a start tag.
If an element is useless, then it is a good way to drop it.
- Parameters:
-
- Returns:
- the input stream
Definition at line 161 of file control_flow.cpp.
References _(), drop_element_until_etag(), is_stag(), read_etag(), read_stag(), XIMOL_AS_ERROR, XIMOL_PARSER_USING_NAMESPACE, XIMOL_THROW, and xstring.
Referenced by drop_element_until_etag(), and wait_stag(). |
XIMOL_BEGIN_NAMESPACE XIMOL_EXPORT bool has_skip_whitespace |
( |
xistream & |
xis |
) |
|
|
|
Test the flag to eat all white space.
Drop first white spaces in the stream before reading stag and etag
S ::= (x20 | x9 | xD | xA)
- Parameters:
-
- Returns:
- the test result
Definition at line 75 of file control_flow.cpp.
Referenced by is_etag(), is_stag(), and operator>>(). |
XIMOL_EXPORT bool is_etag |
( |
xistream & |
xis |
) |
|
|
XIMOL_EXPORT bool is_stag |
( |
xistream & |
xis |
) |
|
|
|
Test next element.
test if the incoming element is a start tag. This function could be use with the drop_content to do some loop.
- Parameters:
-
- Returns:
- the result of the test
Definition at line 119 of file control_flow.cpp.
References xistream::context, xistream::get(), has_skip_whitespace(), is_letter(), xistream::putback(), read_optionnal_space(), XCHAR_LESS_THAN_SIGN, xchar_t, and XIMOL_PARSER_USING_NAMESPACE.
Referenced by drop_element_until_etag(), drop_next_element(), reader_policy::by_default< qname_type, abs_reader_type >::read(), and wait_stag(). |
|
Turn off the flag to eat all white space.
Drop first white spaces in the stream before reading stag and etag
S ::= (x20 | x9 | xD | xA)
- Parameters:
-
- Returns:
- the input stream
Definition at line 92 of file control_flow.cpp. |
|
Turn on the flag to eat all white space.
Drop first white spaces in the stream before reading stag and etag
S ::= (x20 | x9 | xD | xA)
- Parameters:
-
- Returns:
- the input stream
Definition at line 83 of file control_flow.cpp. |
template<typename String1> |
bool wait_stag |
( |
xistream & |
xis, |
|
|
String1 |
tag |
|
) |
|
|
template<typename String1, typename String2> |
bool wait_stag |
( |
xistream & |
xis, |
|
|
String1 |
ns, |
|
|
String2 |
tag |
|
) |
|
|
|
|
|