utils/truncate library

Truncate a string replacing the truncated with three dots.

Copyright (C) 2023, Togaware Pty Ltd.

License: https://www.gnu.org/licenses/gpl-3.0.en.html

Authors: Graham Williams

Functions

truncate(String str, {int maxLength = 110, String replacement = '...'}) String
Truncate str to length len replacing it with rep.