Lines Matching refs:chunk
95 public function base64Encode($data, $chunk=76, $init_chunk=0, $headers=false, $le="\r\n") argument
98 $chunk -= 2;
99 $chunk = $this->getHcf($chunk, 4);
128 $ret .= trim(chunk_split($string, $chunk, $le)) . $le;
152 public function base64EncodeFile(Swift_File $file, $chunk=76, $le="\r\n") argument
156 $chunk -= 2;
157 $chunk = $this->getHcf($chunk, 4);
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
213 || preg_match('/^.{1,'.($chunk-6).'}([^=]{0,3})?/', $string, $matches)
267 public function QPEncodeFile(Swift_File $file, $chunk=76, $le="\r\n") argument
274 preg_match_all('/.{1,'.($chunk-6).'}([^=]{0,3})?/', $next, $next);
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
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
435 preg_match_all('~.{1,'.($chunk-6).'}([^%]{0,3})~', $str, $matches);