Re: regex.e find_all -- another problem
- Posted by jimcbrown (admin) Mar 27, 2010
- 907 views
jessedavis said...
from the manual for euphoria 4.0:
10.2.6.2 get_ovector_size ;get_ovector_size; include std/regex.e public function get_ovector_size(regex ex, integer maxsize = 0) Returns the number of capturing subpatterns (the ovector size) for a regex 10.2.6.2.1 Parameters: 1. ex : a regex 2. maxsize : optional maximum number of named groups to get data from 10.2.6.2.2 Returns: An integer ------------------------------------- A search of the include file regex.e does not find get_ovector_size. Huh? Regards, jd
I see this on line 236 of std/regex.e
public function get_ovector_size(regex ex, integer maxsize=0) integer m = machine_func(M_PCRE_GET_OVECTOR_SIZE, {ex}) if (m > maxsize) then return maxsize end if return m+1 end function
And on line 36
enum M_PCRE_COMPILE=68, M_PCRE_FREE, M_PCRE_EXEC, M_PCRE_REPLACE, M_PCRE_ERROR_MESSAGE=95, M_PCRE_GET_OVECTOR_SIZE=97
I am quite confused as to why you would be missing get_ovector_size() in std/regex.e ... Does it work if you manually add this code back in?