@@ -227,6 +227,9 @@ discard block |
||
227 | 227 | return new self($this->raw{$offset}); |
228 | 228 | } |
229 | 229 | |
230 | + /** |
|
231 | + * @param integer $offset |
|
232 | + */ |
|
230 | 233 | public function charCodeAt($offset) |
231 | 234 | { |
232 | 235 | if ($this->encoding === self::WINDOWS1252) { |
@@ -354,6 +357,9 @@ discard block |
||
354 | 357 | return new self(\str_repeat($this->raw, $times)); |
355 | 358 | } |
356 | 359 | |
360 | + /** |
|
361 | + * @param string $replace |
|
362 | + */ |
|
357 | 363 | public function replace($search, $replace, $mode = self::NORMAL) |
358 | 364 | { |
359 | 365 | if ($mode & self::CASE_INSENSITIVE) { |
@@ -686,6 +692,9 @@ discard block |
||
686 | 692 | return [$offset, 1, false, $byte]; |
687 | 693 | } |
688 | 694 | |
695 | + /** |
|
696 | + * @param integer $byte |
|
697 | + */ |
|
689 | 698 | protected static function calcUtf8CharLength($byte) |
690 | 699 | { |
691 | 700 | if (~$byte & 0b00001000) return 4; |