Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2015-04-22
2015-04-22 09:57:38 by Martin Karlgren <marty@roxen.com>
6659d86ff9727252c96d16d34c6e7444cab2f9b2 (
12
lines) (+
11
/-
1
)
[
Show
|
Annotate
]
Branch:
devel
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..];