Lines Matching refs:s

30 	public function write($s, $ln = true)
33 $this->endPage($s, $ln);
35 $this->mpdf->buffer .= $s . ($ln ? "\n" : '');
39 public function string($s)
42 $s = $this->protection->rc4($this->protection->objectKey($this->mpdf->currentObjectNumber), $s);
45 return '(' . $this->escape($s) . ')';
62 public function stream($s)
65 $s = $this->protection->rc4($this->protection->objectKey($this->mpdf->currentObjectNumber), $s);
69 $this->write($s);
73 public function utf16BigEndianTextString($s) // _UTF16BEtextstring
75 $s = $this->utf8ToUtf16BigEndian($s, true);
77 $s = $this->protection->rc4($this->protection->objectKey($this->mpdf->currentObjectNumber), $s);
80 return '(' . $this->escape($s) . ')';
106 public function escape($s) // _escape
108 return strtr($s, [')' => '\\)', '(' => '\\(', '\\' => '\\\\', chr(13) => '\r']);
111 public function escapeSlashes($s) // _escapeName
113 return strtr($s, ['/' => '#2F']);
119 * @param string $s
122 public function unescape($s)
125 for ($count = 0, $n = strlen($s); $count < $n; $count++) {
126 if ($count === $n - 1 || $s[$count] !== '\\') {
127 $out .= $s[$count];
129 switch ($s[++$count]) {
133 $out .= $s[$count];
151 if ($count !== $n - 1 && $s[$count + 1] === "\n") {
159 $ord = ord($s[$count]);
161 $oct = ''. $s[$count];
162 $ord = ord($s[$count + 1]);
164 $oct .= $s[++$count];
165 $ord = ord($s[$count + 1]);
167 $oct .= $s[++$count];
172 $out .= $s[$count];
181 private function endPage($s, $ln)
185 $this->mpdf->headerbuffer.= $s . "\n";
194 if (preg_match('/q \d+\.\d\d+ 0 0 (\d+\.\d\d+) \d+\.\d\d+ \d+\.\d\d+ cm \/(I|FO)\d+ Do Q/', $s, $m)) { // Image data
200 } elseif ($this->mpdf->tableLevel > 0 && preg_match('/\d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ ([\-]{0,1}\d+\.\d\d+) re/', $s, $m)) { // Rect in table
221 's' => $s, // Text string to output
231 $this->mpdf->tablebuffer .= $s . "\n";
237 's' => $s, // Text string to output
245 $this->mpdf->pages[$this->mpdf->page] .= $s . ($ln ? "\n" : '');