Lines Matching refs:le
95 public function base64Encode($data, $chunk=76, $init_chunk=0, $headers=false, $le="\r\n") argument
115 if ($init_chunk && $init_chunk < (strlen($string)+2)) $ret .= $le;
116 $ret .= $le . $string;
123 $ret .= substr($string, 0, $init_chunk) . $le;
126 elseif ($init_chunk) $ret .= $le;
128 $ret .= trim(chunk_split($string, $chunk, $le)) . $le;
152 public function base64EncodeFile(Swift_File $file, $chunk=76, $le="\r\n") argument
162 if ($loop) $cache->write("b64", $le);
164 $next = chunk_split($this->rawBase64Encode($bytes), $chunk, $le);
180 public function QPEncode($data, $chunk=76, $init_chunk=0, $headers=false, $le="\r\n") argument
193 $ret .= $le . $string;
197 $lines = explode($le, $string);
200 $string = implode($le, $lines);
206 $ret .= $this->fixLE($matches[0] . "=", $le); //fixLE added 24/08/07
216 $ret .= $this->fixLE($le . $matches[0] . "=", $le); //fixLE added 24/08/07
267 public function QPEncodeFile(Swift_File $file, $chunk=76, $le="\r\n") argument
275 if (count($next[0])) $cache->write("qp", $this->fixLE(implode("=" . $le, $next[0]), $le));
286 public function encode7Bit($data, $chunk=76, $le="\r\n") argument
288 return $this->fixLE(wordwrap($data, $chunk-2, $le, 1), $le);
298 public function encode7BitFile(Swift_File $file, $chunk=76, $le="\r\n") argument
304 $cache->write("7b", $this->fixLE(wordwrap($ret, $chunk-2, $le, 1), $le));
314 public function encode8Bit($data, $chunk=76, $le="\r\n") argument
316 return $this->fixLE(wordwrap($data, $chunk-2, $le, 1), $le);
326 public function encode8BitFile(Swift_File $file, $chunk=76, $le="\r\n") argument
332 $cache->write("8b", $this->fixLE(wordwrap($ret, $chunk-2, $le, 1), $le));
344 public function header7BitEncode($data, $chunk=76, $init_chunk=0, $le="\r\n") argument
350 $data_wrapped = wordwrap($data, $init_chunk, $le);
351 $lines = explode($le, $data_wrapped);
353 $ret .= $first_line . $le;
356 elseif ($init_chunk) $ret .= $le;
357 $ret .= wordwrap($data, $chunk-2, $le);
427 …public function rfc2047Encode($str, $charset="iso-8859-1", $language="en-us", $chunk=76, $le="\r\n… argument
436 if (count($matches[0])) return implode($le, $matches[0]);
445 protected function fixLE($data, $le) argument
448 if ($le != "\n") $data = str_replace("\n", $le, $data);
449 return $data = str_replace($le . ".", $le . "..", $data);