Lines Matching refs:indent

111   private $indent;  variable in Spyc
215 * @param int $indent Pass in false to use the default, which is 2
219 …public static function YAMLDump($array, $indent = false, $wordwrap = false, $no_opening_dashes = f… argument
221 return $spyc->dump($array, $indent, $wordwrap, $no_opening_dashes);
242 * @param int $indent Pass in false to use the default, which is 2
245 public function dump($array,$indent = false,$wordwrap = false, $no_opening_dashes = false) { argument
250 if ($indent === false or !is_numeric($indent)) {
253 $this->_dumpIndent = $indent;
287 …private function _yamlize($key,$value,$indent, $previous_key = -1, $first_key = 0, $source_array =… argument
291 return $this->_dumpNode($key, array(), $indent, $previous_key, $first_key, $source_array);
294 … $string = $this->_dumpNode($key, self::REMPTY, $indent, $previous_key, $first_key, $source_array);
296 $indent += $this->_dumpIndent;
298 $string .= $this->_yamlizeArray($value,$indent);
301 $string = $this->_dumpNode($key, $value, $indent, $previous_key, $first_key, $source_array);
313 private function _yamlizeArray($array,$indent) { argument
319 $string .= $this->_yamlize($key, $value, $indent, $previous_key, $first_key, $array);
336 …private function _dumpNode($key, $value, $indent, $previous_key = -1, $first_key = 0, $source_arra… argument
343 $value = $this->_doLiteralBlock($value,$indent);
345 $value = $this->_doFolding($value,$indent);
351 $value = $this->_doLiteralBlock($value, $indent);
354 $value = $this->_doLiteralBlock($value,$indent);
363 $spaces = str_repeat(' ',$indent);
385 private function _doLiteralBlock($value,$indent) { argument
399 $indent += $this->_dumpIndent;
400 $spaces = str_repeat(' ',$indent);
417 private function _doFolding($value,$indent) { argument
421 $indent += $this->_dumpIndent;
422 $indent = str_repeat(' ',$indent);
423 $wrapped = wordwrap($value,$this->_dumpWordWrap,"\n$indent");
424 $value = ">\n".$indent.$wrapped;
516 $this->indent = strlen($line) - strlen(ltrim($line));
517 $tempPath = $this->getParentPathByIndent($this->indent);
518 $line = self::stripIndent($line, $this->indent);
529 while (++$i < $cnt && $this->literalBlockContinues($Source[$i], $this->indent)) {
550 $this->addArray($lineArray, $this->indent);
552 foreach ($this->delayedPath as $indent => $delayedPath)
553 $this->path[$indent] = $delayedPath;
867 private function addArrayInline ($array, $indent) { argument
872 $this->addArray(array($k => $_), $indent);
971 private function addLiteralLine ($literalBlock, $line, $literalBlockStyle, $indent = -1) { argument
972 $line = self::stripIndent($line, $indent);
1000 private static function stripIndent ($line, $indent = -1) { argument
1001 if ($indent == -1) $indent = strlen($line) - strlen(ltrim($line));
1002 return substr ($line, $indent);
1005 private function getParentPathByIndent ($indent) { argument
1006 if ($indent == 0) return array();
1010 if ($indent <= $lastIndentInParentPath) array_pop ($linePath);
1011 } while ($indent <= $lastIndentInParentPath);
1016 private function clearBiggerPathValues ($indent) { argument
1019 if ($indent == 0) $this->path = array();
1023 if ($k > $indent) unset ($this->path[$k]);
1078 $this->delayedPath = array(strpos ($line, $key) + $this->indent => $key);