Test results for Win32 Console |
Test for delimiter handling when a delimiter boundary falls within the readback array (a buffer the size of the largest delimiter). The end result should be transparent to the user with correctly delimited fields being produced.
Pass
cat _INPUT_DATA_ ¦ xmlfy -F1 aa -F1 aaaa -F1 aaa -F1 a -A delimiter
0123456789aaa9876543210aaaa2468aa13579a9
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xmlfy SYSTEM "xmlfy.dtd"> <xmlfy> <line delimiter="aaa"> <field delimiter="">0123456789</field> </line> <line delimiter="aaaa"> <field delimiter="">9876543210</field> </line> <line delimiter="aa"> <field delimiter="">2468</field> </line> <line delimiter="a"> <field delimiter="">13579</field> </line> <line delimiter=""> <field delimiter="WHITESPACE">9</field> </line> </xmlfy>