Class CalendarText

java.lang.Object
io.github.connellite.util.internal.strftime.CalendarText

public final class CalendarText extends Object
The locale data Strftime needs, read once per locale and then reused.

This is the stand-in for glibc's _NL_CURRENT (LC_TIME, ...) lookups: day and month names, the AM/PM markers, the alternative digits behind the O modifier, and the calendar system behind the E modifier. Name arrays are stored indexed the way BrokenDownTime counts, so a conversion is an array read rather than a formatter call.

Based on glibc: the %a, %A, %b, %B and %p cases, which copy a string straight out of the locale, and nl_get_alt_digit for the O modifier.