Lines Matching refs:value

183         foreach ($options as $option => $value) {
184 $test = $this->setOption($option, $value);
211 * @param mixed $value value for the option
214 public function setOption($option, $value)
218 $this->_options[$option] = $value;
479 * @param callable $stringCallback Will be called with two arguments (key, value) for @string entries
516 $stringCallback = fn($key, $value) => $this->_strings[$key] = $value;
517 $bibItemCallback = fn($key, $value) => $this->entries[$key] = $value;
526 $stringCallback = fn($key, $value) => $this->sqlite->query("INSERT OR REPLACE INTO strings (string, entry) VALUES (?,?)", $key, $value);
527 $bibItemCallback = fn($key, $value) => $this->sqlite->query("INSERT OR REPLACE INTO bibtex (key, entry) VALUES (?,?)", $key, $value);
536 $stringCallback = fn($key, $value) => $this->_sqlStatements[] = array("INSERT OR REPLACE INTO strings (string, entry) VALUES (?,?)", array($key, $value));
537 $bibItemCallback = fn($key, $value) => $this->_sqlStatements[] = array("INSERT OR REPLACE INTO bibtex (key, entry) VALUES (?,?)", array($key, $value));
576 * First the last '=' is searched and the value extracted from that.
582 * Finally after all field=>value pairs the cite and type is extraced and the
642 $value = trim(substr($entry, $position+1));
645 if (',' == substr($value, strlen($value)-1, 1)) {
646 $value = substr($value, 0, -1);
649 $this->_validateValue($value, $entrycopy);
654 if (!in_array(substr($value,0,1),array_keys($this->_delimiters))) {
656 $stringReplacement = $this->sqlite->res2arr($this->sqlite->query("SELECT entry FROM strings WHERE string = ?",$value));
658 $value = $stringReplacement[0]['entry'];
660 } elseif (array_key_exists($value,$this->_strings)) {
661 $value = $this->_strings[$value];
666 $value = $this->_replaceLatex($value);
670 $value = $this->_stripDelimiter($value);
673 $value = $this->_unwrap($value);
676 $value = $this->_removeCurlyBraces($value);
681 $ret[$field] = $value;
865 //The return value is set to false
914 //Getting the value (at is only allowd in values)
929 $value = trim(substr($entry, $position+1));
933 for ($i = 0; $i < strlen($value); $i++) {
1132 * - Upper Case (return value 1)
1133 * - Lower Case (return value 0)
1134 * - Caseless (return value -1)
1176 * Validation of a value
1178 * There may be several problems with the value of a field.
1220 * @param string $value The value in which curly braces to be removed
1223 private function _removeCurlyBraces($value)
1227 $firstchar = substr($value, 0, 1);
1228 $lastchar = substr($value, -1, 1);
1235 $value = substr($value, 1, -1);
1239 $firstchar = substr($value, 0, 1);
1240 $lastchar = substr($value, -1, 1);
1243 $value = preg_replace('/[\{\}]/', '', $value);
1245 $value = $begin.$value.$end;
1246 return $value;