Lines Matching refs:string
35 // separator is an empty string
42 // string is an empty string
43 // if separator is an empty string, split each by character
54 function AddSplitCases( string, separator, str_sep, split_array ) {
58 "( " + string + " ).split(" + str_sep +").constructor == Array",
60 string.split(separator).constructor == Array );
64 "( " + string + " ).split(" + str_sep +").length",
66 string.split(separator).length );
69 var limit = (split_array.length > string.split(separator).length )
70 ? split_array.length : string.split(separator).length;
74 "( " + string + " ).split(" + str_sep +")[" + matches +"]",
76 string.split( separator )[matches] );
81 string, separator, str_sep, limit, str_limit, split_array ) {
86 "( " + string + " ).split(" + str_sep +", " + str_limit +
89 string.split(separator, limit).constructor == Array );
94 "( " + string + " ).split(" + str_sep +", " + str_limit + " ).length",
96 string.split(separator).length );
102 "( " + string + " ).split(" + str_sep +", " + str_limit + " )[" + matches +"]",
104 string.split( separator )[matches] );