Parse BibTeX authors
version | 1 |
---|---|
package | wikindx4\core\importexport |
author | Daniel Reidsma/Mark Grimshaw |
__construct()
getInitials(string $firstname) : string
string
string
parse(string $input) : mixed
'author field can be (delimiters between authors are 'and' or '&'): There are three possible cases: 1: First von Last 2: von Last, First 3: von Last, Jr, First
string
mixed
FALSE|array (firstname, initials, surname, jr, von)explodeString(string $delimiter, string $val) : array
string
string
array
formatFirstname(string $firstname) : string
string
string
getStringCase(string $string) : string
Case determination: non-alphabetic chars are caseless the first alphabetic char determines case if a string is caseless, it is grouped to its neighbour string.
string
string
getVonLast(string $author) : array
string
array
(von, surname)separateInitialsFunc(string $firstname) : array
string
array
(firstname, initials)$removeBraces
$removeEtAl
$removeTilde
$separateInitials
$prefix