diff --git a/src/Editor.php b/src/Editor.php index 81583b2..d0e857a 100644 --- a/src/Editor.php +++ b/src/Editor.php @@ -542,6 +542,27 @@ public function trim($charList = " \t\n\r\0\x0B"): self return static::create($str); } + public function ltrim($charList = " \t\n\r\0\x0B"): self + { + $str = ltrim($this->str, $charList); + + return static::create($str); + } + + public function rtrim($charList = " \t\n\r\0\x0B"): self + { + $str = rtrim($this->str, $charList); + + return static::create($str); + } + + public function base64encode(): self + { + $str = base64_encode($this->str); + + return static::create($str); + } + ///////////////////////////////////////// /// Search and Query /////////////////////////////////////////