Lines Matching defs:flags
63 * A cross between mb_split and preg_split, adding the preg_split flags
69 * @param int $flags
72 public static function split($pattern, $string, $limit = -1, $flags = 0)
74 $offset_capture = (bool)($flags & PREG_SPLIT_OFFSET_CAPTURE);
83 if (self::isLastPart($length, $flags, $limit, $count)) {
88 if (self::isPart($length, $flags)) {
100 * @param $flags
105 private static function isLastPart($length, $flags, $limit, &$count)
107 $split_empty = !($flags & PREG_SPLIT_NO_EMPTY) || $length[0];
118 * @param $flags
121 private static function isPart($length, $flags)
123 $split_empty = !($flags & PREG_SPLIT_NO_EMPTY) || $length[0];
125 $is_captured = ($flags & PREG_SPLIT_DELIM_CAPTURE) && $length[2];