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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
camelCaseToWords
(String data) static String
capitalizeFirstLetter
(String data) static String
static boolean
static String
removeSuffix
(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
-