Advertisement
Guest User

Untitled

a guest
Aug 12th, 2024
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.34 KB | None | 0 0
  1. | Character | Description | Full form | Modifier | | | |
  2. |-----------|-------------|-----------|----------|---|---|---|
  3. | None | `:` | `@` | `:@` | | | |
  4. | ~ | Prints the literal ~ character. | `~_repetitions_**~**`. | Prints `_repetitions_` times the `~` character. | Invalid | | |
  5. | c, C | Prints a single character. | `~**c**`. | Prints the format argument character without prefix. | Spells out non-printing characters. | Prepends the readable `#\` prefix. | Spells out non-printing characters and mentions shift keys. |
  6. | % | Prints an unconditional newline. | `~_repetitions_**%**`. | Prints `_repetitions_` line breaks. | Invalid | | |
  7. | & | Prints a conditional newline, or fresh-line. | `~_repetitions_**&**`. | If the destination is not at the beginning of a fresh line, prints `_repetitions_` line breaks; otherwise, prints `_repetitions_` - 1 line breaks. | Invalid | | |
  8. | \| | Prints a page separator. | `~_repetitions_**\|**`. | Prints `_repetitions_` times a page separator. | Invalid | | |
  9. | r, R | Either prints the number in the specified base (radix) or spells it out. | `~_radix_,_minColumns_,_padChar_,_commaChar_,_commaInterval_**R**`. | Prints the argument as an English number. | Spells the argument in English ordinal numbers. | Prints the argument in Roman numerals using the usual Roman format (e.g., 4 = IV). | Prints the argument in Roman numerals using the old Roman format (e.g., 4 = IIII). |
  10. | d, D | Prints the argument in decimal radix (base = 10). | `~_minColumns_,_padChar_,_commaChar_,_commaInterval_**d**`. | Prints as decimal number without `+` (plus) sign or group separator. | Uses commas as group separator. | Prepends the sign. | Prepends the sign and uses commas as group separator. |
  11. | b, B | Prints the argument in binary radix (base = 2). | `~_minColumns_,_padChar_,_commaChar_,_commaInterval_**b**`. | Prints as binary number without `+` (plus) sign or group separator. | Uses commas as group separator. | Prepends the sign. | Prepends the sign and uses commas as group separator. |
  12. | o, O | Prints the argument in octal radix (base = 8). | `~_minColumns_,_padChar_,_commaChar_,_commaInterval_**o**`. | Prints as octal number without `+` (plus) sign or group separator. | Uses commas as group separator. | Prepends the sign. | Prepends the sign and uses commas as group separator. |
  13. | x, X | Prints the argument in hexadecimal radix (base = 16). | `~_minColumns_,_padChar_,_commaChar_,_commaInterval_**x**`. | Prints as hexadecimal number without `+` (plus) sign or group separator. | Uses commas as group separator. | Prepends the sign. | Prepends the sign and uses commas as group separator. |
  14. | f, F | Prints the argument as a float in fixed-point notation. | `~_width_,_numDecimalPlaces_,_scaleFactor_,_overflowChar_,_padChar_**f**`. | Prints as fixed-point without `+` (plus) sign. | Invalid | Prepends the sign. | Invalid |
  15. | e, E | Prints the argument as a float in exponential notation. | `~_width_,_numDecimalPlaces_,_numDigits_,_scaleFactor_,_overflowChar_,_padChar_,_exponentChar_**e**`. | Prints as exponential without `+` (plus) sign. | Invalid | Prepends the sign. | Invalid |
  16. | g, G | Prints the argument either as a float in fixed-point or exponential notation, choosing automatically. | `~_width_,_numDecimalPlaces_,_numDigits_,_scaleFactor_,_overflowChar_,_padChar_,_exponentChar_**g**`. | Prints as fixed-point or exponential without `+` (plus) sign. | Invalid | Prepends the sign. | Invalid |
  17. | $ | Prints the argument according to monetary conventions. | `~_width_,_numDigits_,_minWholeDigits_,_minTotalWidth_,_padChar_**$**`. | Prints in monetary conventions without `+` (plus) sign or padding. | Prepends the sign before padding characters. | Prepends the sign. | Invalid |
  18. | a, A | Prints the argument in a human-friendly manner. | `~_minColumns_,_colInc_,_minPad_,_padChar_**a**`. | Prints human-friendly output without justification. | Prints `NIL` as empty list `()` instead of `NIL`. | Pads on the left instead of the right side. | Pads on the left and prints `NIL` as `()`. |
  19. | s, S | Prints the argument in a manner compatible with the `read` function. | `~_minColumns_,_colInc_,_minPad_,_padChar_**s**`. | Prints `read`-compatible without justification. | Prints `NIL` as empty list `()` instead of `NIL`. | Pads on the left instead of the right side. | Pads on the left and prints `NIL` as `()`. |
  20. | w, W | Prints the argument in accordance with the printer control variables. | `~**w**`. | Prints in accordance with the currently set control variables. | Enables pretty printing. | Ignores print level and length constraints. | Ignores print level and length constraints and enables pretty printing. |
  21. | * | Prints a line break according to the pretty printer rules. | `~***`. | Prints a line break if a single line is exceeded. | Prints a line break if no single line preceded. | Uses a compact (_miser_) style. | Always inserts a line break. |
  22. | < | Justifies the output. | `~*minColumns*,*colInc*,*minPad*,*padChar*<***expression*****~**>`. | Left-justifies the output. | Adds left padding (= right-justifies). | Adds right padding (= left-justifies). | Centers the text. |
  23. | i, I | Indents a logical block. | `~i`. | Starts indenting from the first character. | Indents starting from the current output position. | Invalid | |
  24. | / | Dispatches the formatting operation to a user-defined function. | `~*prefixParams*/***function***/`. | Depends on the function implementation. | | | |
  25. | t, T | Moves the output cursor to a given column or by a horizontal distance. | `~*columnNumber*,*columnIncrement*t`. | Moves to the specified column. | Orients at section. | Moves the cursor relative to the current position. | Orients relative to section. |
  26. | * | Navigates across the format arguments. | `~*numberOfArgs****`. | Skips the `*numberOfArgs*` format arguments. | Moves `*numberOfArgs*` back. | Moves to the argument at index `*numberOfArgs*`. | Invalid |
  27. | [ | Prints an expression based upon a condition. | `~**[***clause1*~;...~;*clauseN*~:;*defaultClause*~**]**`. | The format argument must be a zero-based integer index, its value being that of the clause to select and print. | Selects the first clause if the format argument is `NIL`, otherwise the second one. | Only processes the clause if the format argument is `T`, otherwise skips it. | Invalid |
  28. | { | Iterates over one or more format arguments and prints these. | `~*numberOfRepetitions***{***expression*~**}**`. | A single format argument is expected to be a list, its elements are consumed in order by the enclosed directives. | Expects the format argument to be a list of lists, consuming its sublists. | Regards all remaining format arguments as a list and consumes these. | Regards all remaining format arguments as a list of sublists, consuming these sublists. |
  29. | ? | Substitutes the directive by the next argument, expected to be a format argument, using the subsequent format arguments in the new portion. | `~**?**`. | Expects the subsequent format argument to be a list whose elements are associated with the inserted control string. | Invalid | Expects separate format arguments instead of a list of these for the inserted portion, as one would specify in the usual manner. | Invalid |
  30. | ( | Modifies the case of the enclosed string. | `~**(**expression~**)**`. | Converts all characters to lower case. | Capitalizes all words. | Capitalizes the first word only, converts the rest to lower case. | Converts all characters to upper case. |
  31. | p, P | Prints a singular or plural suffix depending upon the numeric format argument. | `~**p**`. | Prints nothing if the argument equals 1, otherwise prints `s`. | Moves back to the last consumed format argument, printing nothing if it was 1, otherwise printing `s`. | Prints a `y` if the argument equals 1, otherwise prints `ies`. | Moves back to the last consumed format argument, printing `y` if it was 1, otherwise printing `ies`. |
  32. | ^ | Used in an iteration directive `~{*...*~}` to terminate processing of the enclosed content if no further format arguments follow. | `~*p1*,*p2*,*p3***^**`. | Operates as described. | Invalid | | |
  33. | _Newline_ | Skips or retains line breaks and adjacent whitespaces in a multi-line control string. | `~***Newline***`. | Skips the immediately following line break and adjacent whitespaces. | Skips the immediately following line break, but retains adjacent whitespaces. | Retains the immediately following line break, but skips adjacent whitespaces. | Invalid |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement