src/Util/Utf8String.php
public function offsetSet($offset, $value)
    {
        $head = null;
        $offset = $this->computeOffset($offset);

        if (0 < $offset) {
            $head = \mb_substr($this->_string, 0, $offset);
        }

        $tail = \mb_substr($this->_string, $offset + 1);
        $this->_string = $head . $value . $tail;
        $this->_direction = null;

        return $this;
    }
public function offsetSet($offset, $value)
    {
        $head = null;
        $offset = $this->computeOffset($offset);

        if (0 < $offset) {
            $head = \mb_substr($this->_string, 0, $offset);
        }

        $tail = \mb_substr($this->_string, $offset + 1);
        $this->_string = $head . $value . $tail;
        $this->_direction = null;

        return $this;
    }
public function offsetSet ( $ offset , $ value ) { $ head = null ; $ offset = $ this -> computeOffset ( $ offset ) ; if ( 0 < $ offset ) { $ head = \ mb_substr ( $ this -> _string , 0 , $ offset ) ; } $ tail = \ mb_substr ( $ this -> _string , $ offset + 1 ) ; $ this -> _string = $ head . $ value . $ tail ; $ this -> _direction = null ; return $ this ; }
Set a specific character of the current string.

@param   int    $offset Offset (can be negative and unbound).
@param   string $value  Value.

@return  self
Set a specific character of the current string .