lib/ParserGenerator/PHP/ParserGenerator/Data.php
private function tplt_print($out, $str, $strln, &$lineno)
    {
        if ($str == '') {
            return;
        }
        $this->tplt_linedir($out, $strln, $this->filename);
        $lineno++;
        fwrite($out, $str);
        $lineno += count(explode("\n", $str)) - 1;
        $this->tplt_linedir($out, $lineno + 2, $this->outname);
        $lineno += 2;
    }
private function tplt_print($out, $str, $strln, &$lineno)
    {
        if ($str == '') {
            return;
        }
        $this->tplt_linedir($out, $strln, $this->filename);
        $lineno++;
        fwrite($out, $str);
        $lineno += count(explode("\n", $str)) - 1;
        $this->tplt_linedir($out, $lineno + 2, $this->outname);
        $lineno += 2;
    }
private function tplt_print ( $ out , $ str , $ strln , & $ lineno ) { if ( $ str == '' ) { return ; } $ this -> tplt_linedir ( $ out , $ strln , $ this -> filename ) ; $ lineno ++ ; fwrite ( $ out , $ str ) ; $ lineno += count ( explode ( "\n" , $ str ) ) - 1 ; $ this -> tplt_linedir ( $ out , $ lineno + 2 , $ this -> outname ) ; $ lineno += 2 ; }
Print a string to the file and keep the linenumber up to date
Print a string to the file and keep the linenumber up to date