StringHelper Class Reference

List of all members.

Public Member Functions

String append (String str, Object obj)
String capitalize (String str)
String highlight (String str, String search, String className)
String highlight (String str, String search)
String humanize (String str)
String humanize (String str, boolean lowercase)
String pluralize (String str, int count)
String pluralize (String str)
String shortClassName (String className)
String truncate (String str, int length)
String truncate (String str, int length, char repeater)


Member Function Documentation

String append ( String  str,
Object  obj 
)

String capitalize ( String  str  ) 

String highlight ( String  str,
String  search,
String  className 
)

String highlight ( String  str,
String  search 
)

String humanize ( String  str  ) 

String humanize ( String  str,
boolean  lowercase 
)

String pluralize ( String  str,
int  count 
)

String pluralize ( String  str  ) 

String shortClassName ( String  className  ) 

String truncate ( String  str,
int  length 
)

Truncates a string to the given length then appends '...'
If characters are not cut off the end, the origional string is returned.

Example: truncate("123456", 3) --> "123..." | truncate("123", 6) --> "123"

Parameters:
str - input string
length - number of characters from str to display including periods.
Returns:
a fancy string, baby

String truncate ( String  str,
int  length,
char  repeater 
)

Truncates a string to the given length then appends a character to the end three times.
If characters are not cut off the end, the origional string is returned.

Example: truncate("123456", 3, '$') --> "123$$$" | truncate("123", 6, '$') --> "123"

Parameters:
str - input string
length - number of characters from str to display including periods.
repeater - the character to be repeated 3 times at the end
Returns:
a fancy string, baby


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:41 2012 for Project Wonder by  doxygen 1.5.8