Branch: Tag:

2015-04-22

2015-04-22 09:57:38 by Martin Karlgren <marty@roxen.com>

Add a few (custom and glibc-inspired) modifiers to strftime.

2608:    while (sizeof(key)) {    switch(key[0]) {    // Flags. -  case '!': // Inhibit numerical padding (Pike). +  case '!': // Inhibit numerical padding (Roxen specific). +  case '-': // Inhibit numerical padding (glibc-style).    prefix = 0;    key = key[1..];    continue; -  +  case '^': // Upper-case (glibc-style). +  m->case = "upper"; +  key = key[1..]; +  continue; +  case '~': // Capitalize (Roxen specific). +  m->case = "capitalize"; +  key = key[1..]; +  continue;    case 'E': // Locale-dependent alternative form.    alternative_form = 1;    key = key[1..];