Lines Matching refs:split
2 * File Name: String/split-003.js
18 * The [,limit] argument to String.split is new, and not covered in any
21 * String.split cases are covered in ecma/String/15.5.4.8-*.js.
22 * String.split where separator is a RegExp are in
27 var SECTION = "ecma_2/String/split-003.js";
29 var TITLE = "String.prototype.split( regexp, [,limit] )";
36 // if separator is an empty string, split each by character
64 // verify that the result of split is an object of type Array
66 "( " + string + " ).split(" + str_sep +").constructor == Array",
68 string.split(separator).constructor == Array );
72 "( " + string + " ).split(" + str_sep +").length",
74 string.split(separator).length );
77 var limit = (split_array.length > string.split(separator).length )
78 ? split_array.length : string.split(separator).length;
82 "( " + string + " ).split(" + str_sep +")[" + matches +"]",
84 string.split( separator )[matches] );
91 // verify that the result of split is an object of type Array
94 "( " + string + " ).split(" + str_sep +", " + limit +
97 string.split(separator, limit).constructor == Array );
102 "( " + string + " ).split(" + str_sep +", " + limit + " ).length",
104 string.split(separator, limit).length );
108 var slimit = (split_array.length > string.split(separator).length )
109 ? split_array.length : string.split(separator, limit).length;
113 "( " + string + " ).split(" + str_sep +", " + limit + " )[" + matches +"]",
115 string.split( separator, limit )[matches] );