Mercurial > octave
diff scripts/miscellaneous/methods.m @ 26953:6e01e5be8de3
methods.m: adapt method list post-processing to Java constructors (bug #55858)
* methods.m: Add regular expression to delete package prefix and argument list
from Java constructors. Add regular expression to delete package prefix from
Java constructors when called with "-full".
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 20 Mar 2019 11:24:07 -0700 |
parents | 3cbc3c741f81 |
children | 7f86c097f29e |
line wrap: on
line diff
--- a/scripts/miscellaneous/methods.m Wed Mar 20 17:34:36 2019 +0000 +++ b/scripts/miscellaneous/methods.m Wed Mar 20 11:24:07 2019 -0700 @@ -77,7 +77,10 @@ if (havesigs && ! showsigs) mtds_list = regexprep (mtds_list, '^(?:[^(]+) (\w+) ?\(.*$', '$1'); + mtds_list = regexprep (mtds_list, '^(?:[\.\w]+\.)(\w+) ?\(.*$', '$1'); mtds_list = unique (mtds_list); + else + mtds_list = regexprep (mtds_list, '^(?:[\.\w]+\.)(\w+ ?\(.*)$', '$1'); endif if (nargout == 0)