I hereby claim:
- I am glapworth on github.
- I am glapworth (https://keybase.io/glapworth) on keybase.
- I have a public key ASAvFDBUVBd7yj_qt724zTUf92CeaZHo4nvaRGSCiVM8Dgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public static String TITLE_CASE(String fullname) { | |
String[] word_splitters = {" ", "-", "o^[']", "l^[']", "d^[']", "St^[.]", "Mc","O'", "L^[']", "D^[']", "mc"}; | |
String[] lowercase_exceptions = {"the", "van", "den", "von", "und", "der", "de", "da", "of", "and", "l'", "d'"}; | |
String[] uppercase_exceptions = {"II","III", "IV", "VI", "VII", "VIII", "IX"}; | |
ArrayList<String> new_words = new ArrayList<String>(); | |
fullname = fullname.toLowerCase(); | |
for (String delimiter : word_splitters) { | |
String[] split_words = fullname.split(delimiter); |