@param bool $raw

@return string
774705
public function getString($raw = true)
    {
        return $raw ? $this->_str : $this->_dom->saveHTML($this->_dom->documentElement);
    }
259563
private function replacePlaceholders($raw, $fallback = true)
    {
        if (is_array($raw)) {
            foreach ($raw as $key => $value) {
                $raw[$key] = $this->replacePlaceholders($value, $fallback);
            }

            return $raw;
        }

        if (!is_string($raw)) {
            return $raw;
        }

        $config = $this;

        return preg_replace_callback('~\{\$(.+)\}~', function ($matches) use ($config, $fallback) {
            return $config->get($matches[1], null, $fallback);
        }, $raw);
    }
81488
private function decodeBoolean($data, $rawValue)
    {
        if ($data === '1' && ($rawValue === 'true' || $rawValue === 'on' || $rawValue === 'yes'))
            return true;
        elseif (($data === '0' || empty($data)) && ($rawValue === 'false' || $rawValue === 'off' || $rawValue === 'no'))
            return false;
        return $data;
    }
319438
public static function parse($raw)
    {
        self::$parsed = [];
        list($headings, $data) = self::parseRawData($raw);

        if (!is_array($headings)) {
            // @codeCoverageIgnoreStart
            return self::$parsed;
            // @codeCoverageIgnoreEnd
        }

        foreach ($headings as $heading) {
            for ($i = 0, $j = count($heading); $i < $j; $i++) {
                self::populateEntries($heading, $data, $i);
            }
        };

        unset($headings, $data);

        return array_reverse(self::$parsed);
    }
454207
public function unserialize($raw) {
        $returnData = array();
        $offset     = 0;

        while ($offset < strlen($raw)) {
            $num     = ord($raw[$offset]);
            $offset += 1;
            $varname = substr($raw, $offset, $num);
            $offset += $num;
            $data    = unserialize(substr($raw, $offset));

            $returnData[$varname] = $data;
            $offset += strlen(serialize($data));
        }

        return $returnData;
    }
718065
public static function rawToBin($raw, $length = 0)
    {
        $gmp = gmp_import($raw);
        $bin = gmp_strval($gmp, 2);

        return self::pad($bin, $length);
    }
1233173
public static function rawToDec($raw, $length = 0)
    {
        $gmp = gmp_import($raw);
        $dec = gmp_strval($gmp, 10);

        return self::pad($dec, $length);
    }
611573
public function getParent($raw = true)
	{
		$return = '';

		if (isset($this->dirname))
		{
			$return = $this->dirname;
		}
		else if ($path = $this->getPath())
		{
			$bits = explode('/', $path);
			array_pop($bits);

			if (count($bits) > 0)
			{
				$return = implode('/', $bits);
			}
		}

		return $raw ? $return : self::fromPath($return, $this->getAdapter());
	}
960264
function raw($arg) {
		return $this->fw->recursive($arg,
			function($val) {
				return is_string($val)?$this->fw->decode($val):$val;
			}
		);
	}
1333025
public function whereRaw($raw)
    {
        return $this->where(($raw instanceof Expr\Raw) ? $raw : new Expr\Raw($raw), null, Cmp::RAW);
    }
705172
public function receive($raw)
    {
        //Due to the way EZTexting handles Keyword Submits vs Replys
        //We must check both values.
        $from = $raw->get('PhoneNumber') ? $raw->get('PhoneNumber') : $raw->get('from');
        $message = $raw->get('Message') ? $raw->get('Message') : $raw->get('message');

        $incomingMessage = $this->createIncomingMessage();
        $incomingMessage->setRaw($raw->get());
        $incomingMessage->setFrom($from);
        $incomingMessage->setMessage($message);
        $incomingMessage->setTo('313131');

        return $incomingMessage;
    }
1009959
public function toString($encode = false) {
        $query = http_build_query($this->query, '', '&', PHP_QUERY_RFC3986);

        if ( ! $encode) {
            return rawurldecode($query);
        }

        return $query;
    }
213267
public static function stdout($text, $raw = false)
    {
        if ($raw) {
            return fwrite(STDOUT, $text);
        } elseif (extension_loaded('posix') && posix_isatty(STDOUT)) {
            return fwrite(STDOUT, static::colorize($text));
        } else {
            return fwrite(STDOUT, static::decolorize($text));
        }
    }
1158402
public static function rawToHex($raw, $length = 0)
    {
        $gmp = gmp_import($raw);
        $hex = gmp_strval($gmp, 16);

        return self::pad($hex, $length);
    }
149476
public function getHash(
        bool $raw = false,
        int $outputSize = \SODIUM_CRYPTO_GENERICHASH_BYTES,
        string $personalization = ''
    ): string {
        if ($raw) {
            return Util::raw_hash(
                $personalization . $this->data,
                $outputSize
            );
        }
        return Util::hash(
            $personalization . $this->data,
            $outputSize
        );
    }
944847
public final function formatNamedDate( bool $short = false )
      : string
   {

      if ( $short )
      {
         return \sprintf(
            '%s., %s. %s %d',
            $this->getShortWeekDayName(),
            $this->getDay(),
            $this->getShortMonthName(),
            $this->getYear()
         );
      }

      return \sprintf(
         '%s, %s. %s %d',
         $this->getWeekDayName(),
         $this->getDay(),
         $this->getMonthName(),
         $this->getYear()
      );

   }
384165
public static function raw($binary = true)
    {
        if (is_readable('php://input')) {
            return false;
        }

        $mode = $binary ? 'rb' : 'r';

        if (PHP_VERSION_ID >= 50600) {
            return fopen('php://input', $mode);
        }

        $tmp = Storage::temp();

        return copy('php://input', $tmp) ? fopen($tmp, $mode) : false;
    }