Appends a string to the stream.

@param string $string The string to append.
506275
public function append($string)
    {
        $pos = ftell($this->stream);
        fseek($this->stream, 0, SEEK_END);
        fwrite($this->stream, $string);
        fseek($this->stream, $pos);
    }
1161430
public function write($string)
    {
        $this->content = Text::insert($this->content, $this->position, $string);
        $len = strlen($string);
        $this->position += $len;
        return $len;
    }
739887
public function concat($string, $prepend = false)
    {
        $this->string = $prepend ? (string) $string . $this->string : $this->string . (string) $string;

        return $this;
    }
187092
public function writeString($string)
    {
        fwrite($this->stream, '    <si><t>' . Utils::escape($string) . '</t></si>' . MyWriter::EOL);
        return $this->id++;
    }
456489
public function insert(string $string) {
        $node = $this->root;
        for ($i = 0; $i < \strlen($string); $i++) {
            $charIndex = $this->getCharIndex($string[$i]);
            if (!$node->hasChild($charIndex)) {
                $node->createChildNode($charIndex);
            }
            $node = $node->getChildNode($charIndex);
        }
        $node->createEndOfWordNode();
    }
535218
public function append( $content )
    {
        $prefix = $this->getPrefix();

        if (is_string( $prefix )) {
            $this->file->fwrite( $prefix . ': ' );
        }

        if (!is_string( $content )) {
            $content = var_export( $content, true );
        }

        $this->file->fwrite( $content );
        $this->file->fwrite( PHP_EOL );
        $this->file->fwrite( PHP_EOL );

        $this->incrementLineCount();
    }
1352354
public function writeString($string) {

            $this->stream->writeInt(strlen($string));
            $this->stream->writeBuffer($string);

        }
1148362
public function progress($string = '')
    {
        if (is_null($this->command)) {
            dump($string);

            return;
        }

        $this->command->line($string);
    }
1047992
public function setString(string $string)
    {
        if (empty($string)) {
            Throw new HeaderException('Header string is not allowed to be empty');
        }

        $this->string = $string;
    }
960205
public function put($string)
    {
        if (!$this->handle) $this->open('a');
        return $this->fs->fwrite($this->handle, $string);
    }
100142
public void writeString(String string) throws IOException {
        if (string == null) {
            writeInt(VoltType.NULL_STRING_LENGTH);
            return;
        }

        byte[]  strbytes = string.getBytes(Constants.UTF8ENCODING);
        int len = strbytes.length;

        writeInt(len);
        write(strbytes);
    }
473668
public void add(final String string) {
    checkNotNull(string);
    candidates.put(string, candidate(string));
  }
87867
public function iShouldSeeInTheOutput($string) {
    if (strpos($this->output, $string) === false) {
        throw new Exception(sprintf('Did not see "%s" in output "%s"', $string, $this->output));
    }
  }
1359417
public function append(string $string): self
    {
        return new self((string) $this.$string, $this->encoding);
    }
1249100
public function write($string) {

            if (!$this->isWritable() || ($written = fwrite($this->stream, $string)) === false) {
                throw new \RuntimeException('Could not write in a not writable stream');
            }

            return $written;

        }
668183
private function append_str($str)
  { 
    $this->check_closed(); 
    $this->string_buffer .= $str; 
    $len = strlen($str); 
    $this->current_index += $len; 
    return $len; 
  }
1154372
protected function write(string $string, int $writer = Output::STANDARD): void
	{
		$this->output->writeLn($string, $writer);
	}