Package de.undercouch.citeproc.bibtex
Class NameParser
- java.lang.Object
-
- de.undercouch.citeproc.bibtex.NameParser
-
-
Constructor Summary
Constructors Constructor Description NameParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CSLName[]parse(String names)Parses names toCSLNameobjects.
-
-
-
Method Detail
-
parse
public static CSLName[] parse(String names)
Parses names to
CSLNameobjects. Also handles strings containing multiple names separated byand. The method always returns at least one object, even if the given names cannot be parsed. In this case the returned object just contains a literal string.Special handling is provided for names enclosed in braces {}, which are meant to be preserved as-is in the output.
- Parameters:
names- the names to parse- Returns:
- the
CSLNameobjects (nevernulland never empty)
-
-