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