pike.git / lib / modules / Parser.pmod / Tabular.pike

version» Context lines:

pike.git/lib/modules/Parser.pmod/Tabular.pike:345:    { array s=({options->name,"::"});    foreach(sort(indices(ret)),string name)    { string value=ret[name];    if(sizeof(value))    { if(verb<-2)    s+=({name,":"});    s+=({value,","});    }    }    string out=replace(s[..<1]*"",({"\n"," "," "}),({""," "," "})); +  if(String.width(out)>8) +  out=string_to_utf8(out);    if(verb>0)    werror("%d %.*s\r",recordcount,verb,out);    else    werror("%d %s\n",recordcount,out);    }    recordcount++;    return options->fold?ret:([options->name:ret]);   }      private void add2map(mapping res,string name,mixed entry)
pike.git/lib/modules/Parser.pmod/Tabular.pike:378:   //! the input. This is unnecessary if no argument is   //! specified for @[fetch()].   //!   //! @returns   //! It returns true if EOF has been reached.   //!   //! @seealso   //! @[fetch()]   int skipemptylines()   { string line; int eof=1; -  while((line=in->gets()) && emptyline->match(line)) +  while((line=in->gets()) && String.width(line)==8 && emptyline->match(line))    recordcount++;    if(line)    eof=0,in->unread(line+"\n");    return eof;   }      //! This function consumes as much input as needed to parse   //! the full tabular structures at once.   //!   //! @param format