truncateWithCustomEllipsis static method
Implementation
static String truncateWithCustomEllipsis(String str, int chars, String ellipsisStr)
{
if (str.length > chars) {
str = str.substring(0, chars - 3) + ellipsisStr;
}
return str;
}
static String truncateWithCustomEllipsis(String str, int chars, String ellipsisStr)
{
if (str.length > chars) {
str = str.substring(0, chars - 3) + ellipsisStr;
}
return str;
}