Home | History | Annotate | Download | only in src

Lines Matching refs:separator

581 function StringSplit(separator, limit) {
589 // ECMA-262 says that if separator is undefined, the result should
591 if (IS_UNDEFINED(separator)) {
596 if (!IS_REGEXP(separator)) {
597 separator = TO_STRING_INLINE(separator);
601 var separator_length = separator.length;
603 // If the separator string is empty then return the elements in the subject.
606 var result = %StringSplit(subject, separator, limit);
613 // Separator is a regular expression.
614 return StringSplitOnRegExp(subject, separator, limit, length);
618 function StringSplitOnRegExp(subject, separator, limit, length) {
619 %_Log('regexp', 'regexp-split,%0S,%1r', [subject, separator]);
622 if (DoRegExpExec(separator, subject, 0, 0) != null) {
641 var matchInfo = DoRegExpExec(separator, subject, startIndex);