adds debug data to the instance debug string with formatting

@param    string $string debug data
@access   private
760524
function debug($string){
		if ($this->debugLevel > 0) {
			$this->appendDebug($this->getmicrotime().' '.get_class($this).": $string\n");
		}
	}
506275
public function append($string)
    {
        $pos = ftell($this->stream);
        fseek($this->stream, 0, SEEK_END);
        fwrite($this->stream, $string);
        fseek($this->stream, $pos);
    }
1023083
function fromString( $string )
    {
        $dataType = $this->dataType();
        if ( $dataType )
            return $dataType->fromString( $this, $string );
        else
            return false;
    }
372949
public static function debug(array $strings, array $placeholders = [])
    {
        // Initialize messages storage.
        if (!isset($_SESSION[__TRAIT__])) {
            $_SESSION[__TRAIT__] = [];
        }

        // Mark debug message.
        array_unshift($strings, '<question>DEBUG:</question>');

        $_SESSION[__TRAIT__][] = new Message('comment', 4, $strings, $placeholders, (bool) getenv('BEHAT_DEBUG'));
    }
101695
public function writeString($string)
    {
        fwrite($this->sharedStringsFilePointer, '<si><t xml:space="preserve">' . $this->stringsEscaper->escape($string) . '</t></si>');
        $this->numSharedStrings++;

        // Shared string ID is zero-based
        return ($this->numSharedStrings - 1);
    }
747530
public function debug($str) {
        if ($this->_level >= self::DEBUG) {
            $this->put("$str ".$this->caller(), self::DEBUG);
        }
    }
434086
public function log($string, $context = []) {
        if (!$this->enabled) {
            return;
        }

        $this->logger->info($string, [
                'time' => static::formatTime(static::getTime() - $this->start_time),
                'memory' => static::formatSize(memory_get_usage()),
                'memory_bytes' => memory_get_usage(),
                'time_microtime' => static::getTime() - $this->start_time,
            ] + $context);
    }
60399
public function addHeader ($string, $prepend = false)
		{
			if ($prepend) {
				$this->prependHeader($string);
			} else {
				$this->headers[] = $string;
			}
		}
563818
public function debug($value='')
    {
        if($this->sieve->debug) {
            self::$writer->swrite(LOG_DEBUG, sprintf($this->template, 'DEBUG', $value));
        }
    }
96523
public function write($string) {
        if ( ! is_array($string)) {
            $string = [$string];
        }

        foreach ($string as $item) {
            $this->buffer .= $item;
        }
    }
1250381
public function offsetSet($offset, $string)
    {
        $this->string = Mbstring::substrReplace($this->string, $string, $offset, 1, $this->encoding);
    }
1080992
public function loadString($string)
    {
        $this->sourceString = $string;

        if ($this->config->allowPhpScripts === false) {
            $this->sourceString = preg_replace(
                '/<\\?.*(\\?>|$)/Us',
                '',
                str_replace('<?=', '<?php echo ', $this->sourceString)
            );
        }

        $this->sourceString = str_replace(
            [
                '__DIR__',
                '__FILE__',
            ],
            [
                "'" . $this->getSourceFileDirectory() . "'",
                "'" . $this->getSourceFilePath() . "'",
            ],
            $this->sourceString
        );

        return empty($this->sourceString);
    }
1212911
public static function importString($string)
    {
        // Load the feed as an XML DOMDocument object
        @ini_set('track_errors', 1);
        $doc = new DOMDocument;
        $status = @$doc->loadXML($string);
        @ini_restore('track_errors');

        if (!$status) {
            // prevent the class to generate an undefined variable notice (ZF-2590)
            if (!isset($php_errormsg)) {
                if (function_exists('xdebug_is_enabled')) {
                    $php_errormsg = '(error message not available, when XDebug is running)';
                } else {
                    $php_errormsg = '(error message not available)';
                }
            }

            /**
             * @see Zend_Feed_Exception
             */
            require_once 'Zend/Feed/Exception.php';
            throw new Zend_Feed_Exception("DOMDocument cannot parse XML: $php_errormsg");
        }

        // Try to find the base feed element or a single <entry> of an Atom feed
        if ($doc->getElementsByTagName('feed')->item(0) ||
            $doc->getElementsByTagName('entry')->item(0)) {
            /**
             * @see Zend_Feed_Atom
             */
            require_once 'Zend/Feed/Atom.php';
            // return a newly created Zend_Feed_Atom object
            return new Zend_Feed_Atom(null, $string);
        }

        // Try to find the base feed element of an RSS feed
        if ($doc->getElementsByTagName('channel')->item(0)) {
            /**
             * @see Zend_Feed_Rss
             */
            require_once 'Zend/Feed/Rss.php';
            // return a newly created Zend_Feed_Rss object
            return new Zend_Feed_Rss(null, $string);
        }

        // $string does not appear to be a valid feed of the supported types
        /**
         * @see Zend_Feed_Exception
         */
        require_once 'Zend/Feed/Exception.php';
        throw new Zend_Feed_Exception('Invalid or unsupported feed format');
    }
814231
public function parseString($string)
    {
        $lines     = preg_split('(\r\n|\r|\n)', $string);
        $lineCount = count($lines);
        $diffs     = array();
        $diff      = null;
        $collected = array();

        for ($i = 0; $i < $lineCount; ++$i) {
            if (preg_match('(^---\\s+(?P<file>\\S+))', $lines[$i], $fromMatch) &&
                 preg_match('(^\\+\\+\\+\\s+(?P<file>\\S+))', $lines[$i + 1], $toMatch))
            {
                // If a diff already has started, parse the colected lines for
                // the affected diff.
                if ($diff !== null) {
                    $this->parseFileDiff($diff, $collected);
                    $diffs[]   = $diff;
                    $collected = array();
                }

                $diff = new \Arbit\VCSWrapper\Diff\Collection($fromMatch['file'], $toMatch['file']);
                ++$i;
            } else {
                // Collect all lines, which do not indicate a starting diff.
                $collected[] = $lines[$i];
            }
        }

        // We reached the end of the diff, perhaps there are still lines to
        // calcualte a diff from?
        if (count($collected) &&
             ($diff !== null))
        {
            $this->parseFileDiff($diff, $collected);
            $diffs[] = $diff;
        }

        return $diffs;
    }
273177
public static function fromString($string)
    {
        try {
            $lineBreak = StringUtil::detectLineBreak($string);
        } catch (DifferentLineBreaksFoundException $e) {
            $lineBreak = $e->getNumberLineBreakOther() >= $e->getNumberLineBreakWindows()
                ? StringUtil::LINE_BREAK_OTHER
                : StringUtil::LINE_BREAK_WINDOWS;
        }

        return new static(StringUtil::breakIntoLines($string), $lineBreak);
    }
447794
public function append($string)
    {
        $this->value = Character::ensureTrailing($string, $this->value);

        return $this;
    }
1194331
private function add_to_po($string) {
		$this->strings[$string] = '';

		$current_strings = Util::load(Config::$po_directory . '/' . $this->language->name_short . '/' . $this->application_name . '.po');
		$untranslated = [$string => ''];
		$strings = array_merge($untranslated, $current_strings);
		ksort($strings);

		Util::save(Config::$po_directory . '/' . $this->language->name_short . '/' . $this->application_name . '.po', $this->application_name, $this->language, $strings);
	}