You are here

private function lessc::string in Less CSS Preprocessor 6

Same name and namespace in other branches
  1. 6.3 lessphp/lessc.inc.php \lessc::string()
2 calls to lessc::string()
lessc::import in ./lessc.inc.php
lessc::value in ./lessc.inc.php

File

./lessc.inc.php, line 342

Class

lessc

Code

private function string(&$string, &$d = null) {
  try {
    $this
      ->literal('"', true);
    $delim = '"';
  } catch (exception $ex) {
    $this
      ->literal("'", true);
    $delim = "'";
  }
  $this
    ->to($delim, $string);
  if (!isset($d)) {
    $d = $delim;
  }
  return $this;
}