libdom
Loading...
Searching...
No Matches
src
core
string.h
Go to the documentation of this file.
1
2
/*
3
* This file is part of libdom.
4
* Licensed under the MIT License,
5
* http://www.opensource.org/licenses/mit-license.php
6
* Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
7
*/
8
9
#ifndef dom_internal_core_string_h_
10
#define dom_internal_core_string_h_
11
12
#include <
dom/core/string.h
>
13
14
/* Map the lwc_error to dom_exception */
15
dom_exception
_dom_exception_from_lwc_error
(lwc_error err);
16
17
enum
dom_whitespace_op
{
18
DOM_WHITESPACE_STRIP_LEADING
= (1 << 0),
19
DOM_WHITESPACE_STRIP_TRAILING
= (1 << 1),
20
DOM_WHITESPACE_STRIP
=
DOM_WHITESPACE_STRIP_LEADING
|
21
DOM_WHITESPACE_STRIP_TRAILING
,
22
DOM_WHITESPACE_COLLAPSE
= (1 << 2),
23
DOM_WHITESPACE_STRIP_COLLAPSE
=
DOM_WHITESPACE_STRIP
|
24
DOM_WHITESPACE_COLLAPSE
25
};
26
37
dom_exception
dom_string_whitespace_op
(
dom_string
*s,
38
enum
dom_whitespace_op
op,
dom_string
**ret);
39
40
#endif
41
dom_exception
dom_exception
Definition
exceptions.h:24
string.h
dom_whitespace_op
dom_whitespace_op
Definition
string.h:17
DOM_WHITESPACE_COLLAPSE
@ DOM_WHITESPACE_COLLAPSE
Definition
string.h:22
DOM_WHITESPACE_STRIP_TRAILING
@ DOM_WHITESPACE_STRIP_TRAILING
Definition
string.h:19
DOM_WHITESPACE_STRIP_LEADING
@ DOM_WHITESPACE_STRIP_LEADING
Definition
string.h:18
DOM_WHITESPACE_STRIP_COLLAPSE
@ DOM_WHITESPACE_STRIP_COLLAPSE
Definition
string.h:23
DOM_WHITESPACE_STRIP
@ DOM_WHITESPACE_STRIP
Definition
string.h:20
dom_string_whitespace_op
dom_exception dom_string_whitespace_op(dom_string *s, enum dom_whitespace_op op, dom_string **ret)
Definition
string.c:1037
_dom_exception_from_lwc_error
dom_exception _dom_exception_from_lwc_error(lwc_error err)
Definition
string.c:875
dom_string
Definition
string.h:19
Generated on Sat Oct 19 2024 20:08:27 for libdom by
1.10.0