You are here

function lessc::string in Less CSS Preprocessor 6.3

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

File

lessphp/lessc.inc.php, line 463

Class

lessc

Code

function string(&$string, &$d = null) {
  $s = $this
    ->seek();
  if ($this
    ->literal('"', false)) {
    $delim = '"';
  }
  else {
    if ($this
      ->literal("'", false)) {
      $delim = "'";
    }
    else {
      return false;
    }
  }
  if (!$this
    ->to($delim, $string)) {
    $this
      ->seek($s);
    return false;
  }
  $d = $delim;
  return true;
}