| java.lang.Object org.apache.solr.util.StrUtils
StrUtils | public class StrUtils (Code) | | author: yonik version: $Id: StrUtils.java 508805 2007-02-17 20:42:45Z yonik $ |
parseBoolean | public static boolean parseBoolean(String s)(Code) | | Return if a string starts with '1', 't', or 'T'
and return false otherwise.
|
partialURLEncodeVal | public static void partialURLEncodeVal(Appendable dest, String val) throws IOException(Code) | | URLEncodes a value, replacing only enough chars so that
the URL may be unambiguously pasted back into a browser.
Characters with a numeric value less than 32 are encoded.
&,=,%,+,space are encoded.
|
splitSmart | public static List<String> splitSmart(String s, char separator)(Code) | | Split a string based on a separator, but don't split if it's inside
a string. Assume '\' escapes the next char both inside and
outside strings.
|
splitSmart | public static List<String> splitSmart(String s, String separator, boolean decode)(Code) | | Splits a backslash escaped string on the separator.
Current backslash escaping supported:
\n \t \r \b \f are escaped the same as a Java String
Other characters following a backslash are produced verbatim (\c => c)
Parameters: s - the string to split Parameters: separator - the separator to split on Parameters: decode - decode backslash escaping |
|
|