diff options
Diffstat (limited to 'clformat/example-format-strings.sprop')
| -rw-r--r-- | clformat/example-format-strings.sprop | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clformat/example-format-strings.sprop b/clformat/example-format-strings.sprop new file mode 100644 index 0000000..6de136a --- /dev/null +++ b/clformat/example-format-strings.sprop @@ -0,0 +1,6 @@ +# Dump hexadecimal output in some manner +dumpHexOutput ~:{~8,'0X: ~2{~8@{~# ~:;~2,'0X ~]~} ~}~v@{ ~}~2{~8@{~A~} ~}~%~} +# Print a list in proper English style (no Oxford comma) +englishList ~#[ none~; ~A~; ~A and ~A:;~@{~#*[ ~A,~; and ~A~; ~A~]~}~] +# An alternate variant which abbreviates long lists +abbrevList ~#[NONE~;~a~;~a and ~a~:;~a, ~a~]~#[~; and ~a~:;, ~a, etc~] |
