public function PARSEENTRIES::extractStringValue in Bibliography Module 7
Same name and namespace in other branches
- 5 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
- 6.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
- 6 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
- 7.3 plugins/biblio_style/bibtex/PARSEENTRIES.php \PARSEENTRIES::extractStringValue()
- 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;
}