Branch: Tag:

2012-04-17

2012-04-17 09:14:53 by Stephen R. van den Berg <srb@cuci.nl>

CSV: Added optional Regexp check for fieldnames.

112:    return s;   }    - private class checkpoint + class _checkpoint   { private string oldalread;       void create()
428:   ret:    { if(arrayp(format))    { mixed err=catch -  { checkpoint checkp=checkpoint(); +  { _checkpoint checkp=_checkpoint();    foreach(format;;array|mapping fmt)    if(arrayp(fmt))    for(int found=0;;found=1)    { mixed err=catch -  { checkpoint checkp=checkpoint(); +  { _checkpoint checkp=_checkpoint();    mapping rec=getrecord(fmt,found);    foreach(rec;string name;mixed value)    add2map(ret,name,value);
468:    { int found;    do    { found=0; +  if(!mappingp(format)) +  error("Empty format definition\n");    foreach(format;string name;array|mapping subfmt)    for(;;)    { if(verb<0)