summaryrefslogtreecommitdiff
path: root/clformat/example-format-strings.sprop
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2021-07-12 15:58:34 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2021-07-12 15:58:34 -0300
commita732ae9404c0b7ba446d40bffb246ec43aad603c (patch)
tree931a49908e951471e751e352c8baa3142019bb6b /clformat/example-format-strings.sprop
parenta24c1042499f76ff2d442ae133ef165011a7af4c (diff)
parentaba8e262d0e89ebef4229ad807b67660fc9bef35 (diff)
Merge & Update
Diffstat (limited to 'clformat/example-format-strings.sprop')
-rw-r--r--clformat/example-format-strings.sprop6
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~]