]> granicus.if.org Git - php/commit
Added common handler for strspn() and strcspn(). Almost of the code is
authorAndrey Hristov <andrey@php.net>
Wed, 25 Sep 2002 19:06:29 +0000 (19:06 +0000)
committerAndrey Hristov <andrey@php.net>
Wed, 25 Sep 2002 19:06:29 +0000 (19:06 +0000)
commitf80a817f7c89a16bf45f2b3a017bacab00789499
tree4144b5b48df2264bb893117840db19d84bd3e07f
parent21adf62204696fd5418289ce7ae7c3d8fd984ec2
Added common handler for strspn() and strcspn(). Almost of the code is
identical. Modified to accept up to 4 params. Last 2 optional start & len.
They are analogic to start & len of substr(). So the behavior when start &
len are used is like
strspn(substr($s,$start,$len),$good_chars) and
strcspn(substr($s,$start,$len), $bad_chars)
ext/standard/string.c