Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3682

Show
Ignore:
Timestamp:
06/27/08 21:41:51 (2 months ago)
Author:
kris
Message:

exposed the patch() method. May be removed in future versions!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/xml/Document.d

    r3568 r3682  
    821821                } 
    822822 
     823                /*************************************************************** 
     824         
     825                        Patch the serialization text, causing DocPrinter 
     826                        to ignore the subtree of this node, and instead 
     827                        emit the provided text as raw XML output. 
     828 
     829                        Warning: this function does *not* copy the provided  
     830                        text, and may be removed from future revisions 
     831 
     832                ***************************************************************/ 
     833         
     834                Node patch (T[] text) 
     835                { 
     836                        end = text.ptr + text.length; 
     837                        start = text.ptr; 
     838                        return this; 
     839                } 
     840         
    823841                /*************************************************************** 
    824842                 
     
    10141032 
    10151033                /*************************************************************** 
    1016          
    1017                         Patch the serialization text 
    1018  
    1019                 ***************************************************************/ 
    1020          
    1021                 private Node patch (T[] text) 
    1022                 { 
    1023                         end = text.ptr + text.length; 
    1024                         start = text.ptr; 
    1025                         return this; 
    1026                 } 
    1027          
    1028                 /*************************************************************** 
    10291034                 
    10301035                        Duplicate a single node