Branch: Tag:

2016-07-04

2016-07-04 18:08:17 by Martin Nilsson <nilsson@fastmail.com>

It's tedious to write trim_all_whites. Make trim the canonical name.

175:       case "Equinox":    if (sscanf(rule, "Equinox%*[ \t]%s", string type)) { -  switch(String.trim_all_whites(type)) { +  switch(String.trim(type)) {    case "Vernal": case "Northward":    return Event.Solar(0);    case "Autumnal": case "Southward":
186:       case "Solstice":    if (sscanf(rule, "Solstice%*[ \t]%s", string type)) { -  switch(String.trim_all_whites(type)) { +  switch(String.trim(type)) {    case "Summer": case "Northern":    return Event.Solar(1);    case "Winter": case "Southern":