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

Changeset 3366

Show
Ignore:
Timestamp:
03/16/08 01:33:11 (9 months ago)
Author:
kris
Message:

optimized Node.name()

Files:

Legend:

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

    r3341 r3366  
    476476                        if (prefix.length) 
    477477                           { 
     478version (old) 
     479{ 
    478480                           auto len = prefix.length + localName.length + 1; 
    479481                           if (output.length < len) 
     
    483485                           output[prefix.length+1 .. len] = localName; 
    484486                           return output[0..len]; 
     487} 
     488else 
     489                           return prefix.ptr [0 .. prefix.length + localName.length + 1]; 
    485490                           } 
    486491                        return localName;