String contracted

Aus ExpeccoWiki

Wechseln zu: Navigation, Suche

Schema

String processing contracted.png


Operation

  • Do a string contraction (in the middle).
  • If the input string is longer than the given desiredSize, contract it and add ellipsis (...) in the middle.
  • This is useful to generate table-data values where the most useful information is at the left and right of the string. If the input string is shorter, it is send to the output unchanged.

Revisions

This block has been in the Standard Library since 1.0.



Back to Standard Library.
Previous: String [ RightContracted ]
Next: String [ LeftPadded ]


Meine Werkzeuge