aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-16 20:20:15 +0900
committernsfisis <nsfisis@gmail.com>2026-08-16 20:20:15 +0900
commit1dfd1ae32b9b27573b9ee4439674091b792bcce0 (patch)
treed715462a35a4b5e59f828e2c18865a1b322e9abc /docs
parentb6604e1395f003748fe40a44e1190470632a40ce (diff)
downloadphp-shirabe-1dfd1ae32b9b27573b9ee4439674091b792bcce0.tar.gz
php-shirabe-1dfd1ae32b9b27573b9ee4439674091b792bcce0.tar.zst
php-shirabe-1dfd1ae32b9b27573b9ee4439674091b792bcce0.zip
refactor(preg): make preg_grep() return an iterator
Callers had to build a temporary Vec<&str> at every call site to satisfy the &[&str] parameter. Taking IntoIterator and yielding the matched items lets them pass owned or borrowed strings directly. The flags variant and PREG_GREP_INVERT go away with it: no caller passes flags, and Composer's Preg::grep() has no such parameter either.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions