How should I call the operation that limit a string's length?

Posted by egarcia on Stack Overflow See other posts from Stack Overflow or by egarcia
Published on 2010-05-18T15:58:12Z Indexed on 2010/05/18 16:00 UTC
Read the original article Hit count: 266

This is a language-agnostic question - unless you count English as a language.

I've got this list of items which can have very long names.

For aesthetic purposes, these names must be made shorter in some cases, adding dots (...) to indicate that the name is longer. So for example, if article.name returns this:

lorem ipsum dolor sit amet

I'd like to get this other output.

lorem ipsum dolor ...

I can program this quite easily. My question is: how should I call that shortening operation? I mean the name, not the implementation. Is there a standard English name for it?

© Stack Overflow or respective owner

Related posts about string-manipulation

Related posts about english