stringutils
Function adaptStringLength

java.lang.String adaptStringLength(java.lang.String, int, java.lang.String)
Crops a String to a given length, adding a suffix (for example "...") if needed. The function takes 3 parameters:
java.lang.String: the string to be adapted
int: the number of chars of the string to be kept
java.lang.String: the suffix to be added if the string is not complete

Example:
      
        adaptStringLength("pre",2,"post") :  prpost
      
    


Function Information
Function Classnet.sourceforge.openutils.elfunctions.ElStringUtils
Function Signaturejava.lang.String adaptStringLength(java.lang.String, int, java.lang.String)
Display NameNone


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.