Package com.pocolifo.robobase.utils
Class StringUtils
java.lang.Object
com.pocolifo.robobase.utils.StringUtils
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
StringUtils
public StringUtils() 
 - 
 - 
Method Details
- 
padLeft
Adds n number of characters to the left of a string- Parameters:
 str- the string to padcharacter- a character to pad withamount- amount of characters to pad with- Returns:
 - the new string with padding on the left
 
 - 
padRight
Adds n number of characters to the right of a string- Parameters:
 str- the string to padcharacter- a character to pad withamount- amount of characters to pad with- Returns:
 - the new string with padding on the right
 
 - 
repeat
Repeat a string n number of times- Parameters:
 str- the string to repeatamount- amount of times to repeat- Returns:
 - a new string of str repeated amount times
 
 - 
escapeString
Escapes all escape characters in a string- Parameters:
 str- the string to escape- Returns:
 - a new string made with str where all escape characters have been escaped
 
 
 -