You are here

public function PARSEENTRIES::extractStringValue in Bibliography Module 7

Same name and namespace in other branches
  1. 5 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
  2. 6.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
  3. 6 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
  4. 7.3 plugins/biblio_style/bibtex/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
  5. 7.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()

Extract value part of @string field enclosed by double-quotes or braces. The string may be expanded with previously-defined strings.

1 call to PARSEENTRIES::extractStringValue()
PARSEENTRIES::returnArrays in modules/bibtexParse/PARSEENTRIES.php
Return arrays of entries etc. to the calling process.

File

modules/bibtexParse/PARSEENTRIES.php, line 240

Class

PARSEENTRIES
// Parse a file $parse = NEW PARSEENTRIES(); $parse->expandMacro = TRUE; // $array = array("RMP" =>"Rev., Mod. Phys."); // $parse->loadStringMacro($array); // $parse->removeDelimit = FALSE; // …

Code

public function extractStringValue($string) {

  // $string contains a end delimiter, remove it.
  $string = trim(substr($string, 0, strlen($string) - 1));

  // Remove delimiters and expand.
  $string = $this
    ->removeDelimitersAndExpand($string);
  return $string;
}