MCPcopy Create free account
hub / github.com/apache/solr / split

Method split

solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java:45–50  ·  view source on GitHub ↗
(String s, char sep)

Source from the content-addressed store, hash-verified

43 static final String DELIM_CHARS = "/:;.,%#";
44
45 public static List<String> split(String s, char sep) {
46 if (DELIM_CHARS.indexOf(s.charAt(0)) > -1) {
47 sep = s.charAt(0);
48 }
49 return splitSmart(s, sep, true);
50 }
51
52 public static List<String> splitSmart(String s, char separator, boolean trimEmpty) {
53 List<String> l = splitSmart(s, separator);

Callers 15

assertResponseValuesMethod · 0.95
createFromSolrParamsMethod · 0.95
parseZkQuorumMethod · 0.95
parseHttpQuorumMethod · 0.95
verifyDigestsFunction · 0.45
_find_apache_remoteMethod · 0.45
_get_remote_branchesMethod · 0.45
_parse_version_stringMethod · 0.45
discover_branchesMethod · 0.45
str_presenterFunction · 0.45

Calls 3

splitSmartMethod · 0.95
indexOfMethod · 0.45
charAtMethod · 0.45

Tested by 15

assertResponseValuesMethod · 0.76
verifyDigestsFunction · 0.36
clusterMethod · 0.36
normalizeParamsMethod · 0.36
unblockPortMethod · 0.36
parseFromMethod · 0.36
CallerMatcherMethod · 0.36
phraseQueryMethod · 0.36
customCollectionSetupMethod · 0.36