Lines Matching defs:flags
65 * A cross between mb_split and preg_split, adding the preg_split flags
71 * @param int $flags
74 public static function split($pattern, $string, $limit = -1, $flags = 0)
76 $offset_capture = (bool)($flags & PREG_SPLIT_OFFSET_CAPTURE);
85 if (self::isLastPart($length, $flags, $limit, $count)) {
90 if (self::isPart($length, $flags)) {
102 * @param $flags
107 private static function isLastPart($length, $flags, $limit, &$count)
109 $split_empty = !($flags & PREG_SPLIT_NO_EMPTY) || $length[0];
120 * @param $flags
123 private static function isPart($length, $flags)
125 $split_empty = !($flags & PREG_SPLIT_NO_EMPTY) || $length[0];
127 $is_captured = ($flags & PREG_SPLIT_DELIM_CAPTURE) && $length[2];