| @@ 107-116 (lines=10) @@ | ||
| 104 | return $this; |
|
| 105 | } |
|
| 106 | ||
| 107 | public function trim($mask = " \t\n\r\0\x0B", $flags = self::BOTH_ENDS) |
|
| 108 | { |
|
| 109 | $flagsmap = [ |
|
| 110 | self::START => 'ltrim', |
|
| 111 | self::END => 'rtrim', |
|
| 112 | self::BOTH_ENDS => 'trim', |
|
| 113 | ]; |
|
| 114 | $this->raw = \call_user_func($flagsmap[$flags], $this->raw, $mask); |
|
| 115 | return $this; |
|
| 116 | } |
|
| 117 | ||
| 118 | public function unescape($flags = self::NORMAL) |
|
| 119 | { |
|
| @@ 118-127 (lines=10) @@ | ||
| 115 | return $this; |
|
| 116 | } |
|
| 117 | ||
| 118 | public function unescape($flags = self::NORMAL) |
|
| 119 | { |
|
| 120 | $flagsmap = [ |
|
| 121 | self::NORMAL => 'stripslashes', |
|
| 122 | self::C_STYLE => 'stripcslashes', |
|
| 123 | self::META => 'stripslashes', |
|
| 124 | ]; |
|
| 125 | $this->raw = \call_user_func($flagsmap[$flags], $this->raw); |
|
| 126 | return $this; |
|
| 127 | } |
|
| 128 | ||
| 129 | public function uuDecode() |
|
| 130 | { |
|