tDOM

Check-in [f3e9bae528]
Login

Check-in [f3e9bae528]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Merged from trunk.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | expat-update
Files: files | file ages | folders
SHA3-256: f3e9bae528b0d59db2414fd55099edba6f97b9ac15a7edc45d43ea76a7f901f2
User & Date: rolf 2019-12-31 00:37:58.422
Context
2019-12-31
00:46
Updated to expat 2.2.9. check-in: d619d316b8 user: rolf tags: trunk
00:37
Merged from trunk. Closed-Leaf check-in: f3e9bae528 user: rolf tags: expat-update
2019-11-30
00:47
Editorial clean up: Removed cvs keywords in source code headers; the are obsolete. check-in: 14a8728e63 user: rolf tags: trunk
2019-10-05
23:17
Expat 2.2.9 check-in: c89f418e75 user: rolf tags: expat-update
Changes
Unified Diff Ignore Whitespace Patch
Changes to generic/dom.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A DOM interface upon the expat XML parser for the C language
|   according to the W3C recommendation REC-DOM-Level-1-19981001
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in



<
<
<







1
2
3



4
5
6
7
8
9
10
/*---------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------



|
|   A DOM interface upon the expat XML parser for the C language
|   according to the W3C recommendation REC-DOM-Level-1-19981001
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
Changes to generic/dom.h.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A DOM interface upon the expat XML parser for the C language
|   according to the W3C recommendation REC-DOM-Level-1-19981001
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in



<
<
<







1
2
3



4
5
6
7
8
9
10
/*---------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------



|
|   A DOM interface upon the expat XML parser for the C language
|   according to the W3C recommendation REC-DOM-Level-1-19981001
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
Changes to generic/domalloc.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------
|   Copyright (C) 1999-2000  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A special memory allocator, which uses pre-allocated / bit masked
|   based administration of memory blocks with fixed sizes, like
|   DOM nodes. This will hopefully save some memory.
|
|
|   The contents of this file are subject to the Mozilla Public License



<
<
<







1
2
3



4
5
6
7
8
9
10
/*---------------------------------------------------------------------------
|   Copyright (C) 1999-2000  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------



|
|   A special memory allocator, which uses pre-allocated / bit masked
|   based administration of memory blocks with fixed sizes, like
|   DOM nodes. This will hopefully save some memory.
|
|
|   The contents of this file are subject to the Mozilla Public License
Changes to generic/domalloc.h.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------
|   Copyright (C) 1999-2000  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A special memory allocator, which uses pre-allocated / bit masked
|   based administration of memory block with fixed sizes, like
|   DOM nodes. This will hopefully save some memory.
|
|
|   The contents of this file are subject to the Mozilla Public License



<
<
<







1
2
3



4
5
6
7
8
9
10
/*---------------------------------------------------------------------------
|   Copyright (C) 1999-2000  Jochen C. Loewer ([email protected])
+----------------------------------------------------------------------------



|
|   A special memory allocator, which uses pre-allocated / bit masked
|   based administration of memory block with fixed sizes, like
|   DOM nodes. This will hopefully save some memory.
|
|
|   The contents of this file are subject to the Mozilla Public License
Changes to generic/domlock.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+-----------------------------------------------------------------------------
|
|   $Id$
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
|
|   Software distributed under the License is distributed on an "AS IS"
|   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the




<
<







1
2
3
4


5
6
7
8
9
10
11
/*----------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+-----------------------------------------------------------------------------
|


|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
|
|   Software distributed under the License is distributed on an "AS IS"
|   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
Changes to generic/domxpath.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (c) 1999-2001 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A XPath implementation (lexer/parser/evaluator) for tDOM,
|   the DOM implementation for Tcl.
|   Based on November 16 1999 Recommendation of the W3C
|   (http://www.w3.org/TR/1999/REC-xslt-19991116)
|
|



<
<
<







1
2
3



4
5
6
7
8
9
10
/*----------------------------------------------------------------------------
|   Copyright (c) 1999-2001 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------



|
|   A XPath implementation (lexer/parser/evaluator) for tDOM,
|   the DOM implementation for Tcl.
|   Based on November 16 1999 Recommendation of the W3C
|   (http://www.w3.org/TR/1999/REC-xslt-19991116)
|
|
Changes to generic/domxpath.h.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------
|
|   $Id$
|
| 
|   A (partial) XPath implementation (lexer/parser/evaluator) for tDOM, 
|   the DOM implementation for Tcl.
|   Based on the August 13 working draft of the W3C 
|   (http://www.w3.org/1999/08/WD-xpath-19990813.html)
|
|
|   The contents of this file are subject to the Mozilla Public License




<
<
<







1
2
3
4



5
6
7
8
9
10
11
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------
|



|   A (partial) XPath implementation (lexer/parser/evaluator) for tDOM, 
|   the DOM implementation for Tcl.
|   Based on the August 13 working draft of the W3C 
|   (http://www.w3.org/1999/08/WD-xpath-19990813.html)
|
|
|   The contents of this file are subject to the Mozilla Public License
Changes to generic/domxslt.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (c) 2000 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A XSLT implementation for tDOM, according to the W3C
|   recommendation (16 Nov 1999).
|   See http://www.w3.org/TR/1999/REC-xslt-19991116 for details.
|
|
|   The contents of this file are subject to the Mozilla Public License



<
<
<







1
2
3



4
5
6
7
8
9
10
/*----------------------------------------------------------------------------
|   Copyright (c) 2000 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------



|
|   A XSLT implementation for tDOM, according to the W3C
|   recommendation (16 Nov 1999).
|   See http://www.w3.org/TR/1999/REC-xslt-19991116 for details.
|
|
|   The contents of this file are subject to the Mozilla Public License
Changes to generic/domxslt.h.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*----------------------------------------------------------------------------
|   Copyright (c) 2000 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A (partial) XSLT implementation for tDOM, according to the W3C
|   recommendation (16 Nov 1999,
|   http://www.w3.org/TR/1999/REC-xslt-19991116).
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at




<
<
<
|







1
2
3
4



5
6
7
8
9
10
11
12
/*----------------------------------------------------------------------------
|   Copyright (c) 2000 Jochen Loewer ([email protected])
|-----------------------------------------------------------------------------
|



|   A XSLT implementation for tDOM, according to the W3C
|   recommendation (16 Nov 1999,
|   http://www.w3.org/TR/1999/REC-xslt-19991116).
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
Changes to generic/nodecmd.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+-----------------------------------------------------------------------------
|
|   Rcsid: @(#)$Id$
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
|
|   Software distributed under the License is distributed on an "AS IS"
|   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the




<
<







1
2
3
4


5
6
7
8
9
10
11
/*----------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+-----------------------------------------------------------------------------
|


|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
|
|   Software distributed under the License is distributed on an "AS IS"
|   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
Changes to generic/nodecmd.h.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+-----------------------------------------------------------------------------
|
|   $Id$

|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
|
|   Software distributed under the License is distributed on an "AS IS"
|   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the




<
<







1
2
3
4


5
6
7
8
9
10
11
/*----------------------------------------------------------------------------
|   Copyright (C) 1999  Jochen C. Loewer ([email protected])
+-----------------------------------------------------------------------------
|


|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
|
|   Software distributed under the License is distributed on an "AS IS"
|   basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
Changes to generic/tcldom.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
+-----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A DOM implementation for Tcl using James Clark's expat XML parser
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at



<
<
<







1
2
3



4
5
6
7
8
9
10
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
+-----------------------------------------------------------------------------



|
|   A DOM implementation for Tcl using James Clark's expat XML parser
|
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
Changes to generic/tcldom.h.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
+-----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A DOM implementation for Tcl using James Clark's expat XML parser
|
| 
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at



<
<
<







1
2
3



4
5
6
7
8
9
10
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
+-----------------------------------------------------------------------------



|
|   A DOM implementation for Tcl using James Clark's expat XML parser
|
| 
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
Changes to generic/tdomStubLib.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (c) 2007 Rolf Ade ([email protected])
+-----------------------------------------------------------------------------
|
|   $Id$
|
|   Implements entry point, which has to be called by C coded extensions
|   to tDOM. Following http://wiki.tcl.tk/3358.
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/




<
<







1
2
3
4


5
6
7
8
9
10
11
/*----------------------------------------------------------------------------
|   Copyright (c) 2007 Rolf Ade ([email protected])
+-----------------------------------------------------------------------------
|


|   Implements entry point, which has to be called by C coded extensions
|   to tDOM. Following http://wiki.tcl.tk/3358.
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
|   http://www.mozilla.org/MPL/
Changes to generic/tdominit.c.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
+-----------------------------------------------------------------------------
|
|   $Id$
|
|
|   A DOM implementation for Tcl using James Clark's expat XML parser
| 
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at



<
<
<







1
2
3



4
5
6
7
8
9
10
/*----------------------------------------------------------------------------
|   Copyright (c) 1999 Jochen Loewer ([email protected])
+-----------------------------------------------------------------------------



|
|   A DOM implementation for Tcl using James Clark's expat XML parser
| 
|
|   The contents of this file are subject to the Mozilla Public License
|   Version 2.0 (the "License"); you may not use this file except in
|   compliance with the License. You may obtain a copy of the License at
Changes to tests/i18n.test.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Features covered: international issues 
#
# Copyright (c) 2002 Rolf Ade.
#
# RCS: @(#) $Id$

source [file join [file dir [info script]] loadtdom.tcl]

testConstraint beyondBMP [expr {[dom featureinfo TCL_UTF_MAX] > 3}]
testConstraint 8.6 [package vsatisfies [package present Tcl] 8.6]

test i18n-1.1 {parse utf-8 string} {
    set russian "\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439"
    set doc [dom parse "<test>$russian</test>"]
    set root [$doc documentElement]
    set text [$root text]
    $doc delete









|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Features covered: international issues 
#
# Copyright (c) 2002 Rolf Ade.
#
# RCS: @(#) $Id$

source [file join [file dir [info script]] loadtdom.tcl]

testConstraint beyondBMP [expr {[dom featureinfo TCL_UTF_MAX] > 3}]
testConstraint 8.6 [package vsatisfies [package present Tcl] 8.6-]

test i18n-1.1 {parse utf-8 string} {
    set russian "\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439"
    set doc [dom parse "<test>$russian</test>"]
    set root [$doc documentElement]
    set text [$root text]
    $doc delete