|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.util.StringUtil
public class StringUtil
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static String |
cleanPath(String path)
|
static String |
collectionToDelimitedString(Collection coll,
String delim)
|
static String |
collectionToDelimitedString(Collection coll,
String delim,
String prefix,
String suffix)
|
static boolean |
containsSubString(String text,
String sub)
Check if a String contains a sub string, using whole word match. |
static boolean |
containsVariable(String text,
String varName)
Check if a String contains a SCSS variable, using whole word match. |
static String[] |
delimitedListToStringArray(String str,
String delimiter)
|
static String |
removeDuplicatedSubString(String motherString,
String splitter)
Remove duplicated sub string in a String given a splitter. |
static String |
replace(String inString,
String oldPattern,
String newPattern)
|
static String |
replaceSubString(String text,
String sub,
String value)
Replace the sub string in a String to a value, using whole word match. |
static String |
replaceVariable(String text,
String varName,
String value)
Replace the SCSS variable in a String to its corresponding value, using whole word match. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static String cleanPath(String path)
public static String replace(String inString,
String oldPattern,
String newPattern)
public static String[] delimitedListToStringArray(String str,
String delimiter)
public static String collectionToDelimitedString(Collection coll,
String delim,
String prefix,
String suffix)
public static String collectionToDelimitedString(Collection coll,
String delim)
public static boolean containsVariable(String text,
String varName)
text - text to be checked
public static String replaceVariable(String text,
String varName,
String value)
text - text which contains the SCSS variablevarName - SCSS variable name (Without '$' sign)value - the value of the SCSS variable
public static boolean containsSubString(String text,
String sub)
text - text to be checked
public static String replaceSubString(String text,
String sub,
String value)
text - text which contains the sub stringsub - the sub stringvalue - the new value
public static String removeDuplicatedSubString(String motherString,
String splitter)
motherString - string which may contains duplicated sub stringssplitter - the splitter splits the mother string to sub strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||