Class StringUtils
java.lang.Object
org.apache.velocity.util.StringUtils
com.weirddev.testme.intellij.template.context.StringUtils
public class StringUtils
extends org.apache.velocity.util.StringUtils
General string handling method utils, typically used in test templates.
Date: 26/11/2016
- Author:
- Yaron Yamin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcamelCaseToWords(String data) static StringcapitalizeFirstLetter(String data) static Stringstatic booleanstatic StringremoveSuffix(String str, String suffix) Methods inherited from class org.apache.velocity.util.StringUtils
formatFileString, formatFileString, formatFileString, formatFileString
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
capitalizeFirstLetter
- Returns:
- the input data string where first letter converted to upper case
-
deCapitalizeFirstLetter
- Returns:
- the input data string where first letter converted to lower case
-
camelCaseToWords
- Parameters:
data- string in camel case- Returns:
- input string separated to word from camel case format
-
hasLine
- Parameters:
multiLineText- text with possible new linestoFind- text to find- Returns:
- true - if toFind exists in text lines ( doesn't span in multiple lines)
-
removeSuffix
- Parameters:
str- input string, possibly containing input suffixsuffix- possible suffix of input text- Returns:
- input str without the suffix if indeed is a suffix of input str
-