47     $this->_canonical = $canonical;
 
   60     if ($this->_canonical)
 
   64     return $this->_safeWordWrap($string, $maxLineLength, 
"\r\n");
 
   79     while (
false !== $bytes = $os->
read(8192))
 
   81       $toencode = $leftOver . $bytes;
 
   82       if ($this->_canonical)
 
   86       $wrapped = $this->_safeWordWrap($toencode, $maxLineLength, 
"\r\n");
 
   87       $lastLinePos = strrpos($wrapped, 
"\r\n");
 
   88       $leftOver = substr($wrapped, $lastLinePos);
 
   89       $wrapped = substr($wrapped, 0, $lastLinePos);
 
   93     if (strlen($leftOver))
 
   95       $is->
write($leftOver);
 
  132     $originalLines = explode($le, $string);
 
  137     foreach ($originalLines as $originalLine)
 
  140       $currentLine =& $lines[$lineCount++];
 
  143       $chunks = preg_split(
'/(?<=\s)/', $originalLine);
 
  145       foreach ($chunks as $chunk)
 
  147         if (0 != strlen($currentLine)
 
  148           && strlen($currentLine . $chunk) > $length)
 
  151           $currentLine =& $lines[$lineCount++];
 
  153         $currentLine .= $chunk;
 
  157     return implode(
"\r\n", $lines);
 
  169       array(
"\r\n", 
"\r", 
"\n"),
 
  170       array(
"\n", 
"\n", 
"\r\n"),