[drupal-devel] [feature] New API function: truncate_utf8_conc

Bèr Kessels drupal-devel at drupal.org
Fri Apr 29 10:58:31 UTC 2005

Issue status update for http://drupal.org/node/21576

 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  Bèr Kessels
 Reported by:  Bèr Kessels
 Updated by:   Bèr Kessels
 Status:       patch
 Attachment:   http://drupal.org/files/issues/common_inc_truncate_utf8_conc.diff (1.63 KB)

This function truncates the string, but adds a string to the end, when
requested. For example to concenate three dots (...) to a long

For example to turn the long username
 * johndoe at www.personalweblog.com into johndoe at www.johndo...

Its possible with the current truncate_utf8(), but than you need to do
string comparison and some more truncation afterwards, which is not

And please mark this as wontfix if not appropriate. I do not have time
to maintain this patch, so if its not up to standards or so, just close
this issue.

Bèr Kessels

More information about the drupal-devel mailing list