コード例 #1
0
ファイル: PrinterWrapper.php プロジェクト: rendix2/QW_MVS
 public function myPrint(StringW $s)
 {
     if ($s == NULL) {
         throw new NullPointerException();
     }
     $index = 0;
     while ($index < $s->getLength()) {
         if ($this->isCurrentLineFull()) {
             $this->wrap2NewLine();
         }
         $this->printer->printChar($s->charAt($index));
         $this->charPerCurrentLine++;
         $index++;
     }
 }