Lines Matching refs:length
84 foreach ($lengths as $length) {
85 if (self::isLastPart($length, $flags, $limit, $count)) {
90 if (self::isPart($length, $flags)) {
91 $parts[] = self::makePart($string, $position, $length[0], $offset_capture);
94 $position += $length[0];
101 * @param $length
107 private static function isLastPart($length, $flags, $limit, &$count)
109 $split_empty = !($flags & PREG_SPLIT_NO_EMPTY) || $length[0];
110 $is_delimiter = $length[1];
119 * @param $length
123 private static function isPart($length, $flags)
125 $split_empty = !($flags & PREG_SPLIT_NO_EMPTY) || $length[0];
126 $is_delimiter = $length[1];
127 $is_captured = ($flags & PREG_SPLIT_DELIM_CAPTURE) && $length[2];
138 * @param integer|null $length
142 private static function makePart($string, $position, $length = null, $offset_capture = false)
144 $cut = mb_strcut($string, $position, $length);
153 * [ 0 => length, 1 => is_delimiter?, 2 =>