diff options
author | Ovnuniarchos <pujalte.jorge@gmail.com> | 2015-11-19 01:19:19 +0100 |
---|---|---|
committer | Ovnuniarchos <pujalte.jorge@gmail.com> | 2015-11-19 01:19:19 +0100 |
commit | a9a330645b29152ccc29b6e075c0ebda24b03e37 (patch) | |
tree | 2cf319ce8453dd295c40b809b4bf54527e4fe020 /drivers/nrex/nrex.hpp | |
parent | 0f0dc1a5d328502343c5a902aec552fb01033504 (diff) | |
parent | 94fdd01241749cb7a575ed5f9fa4c7bbb286901a (diff) |
Merge branch 'master' into BBCodeDocs
Diffstat (limited to 'drivers/nrex/nrex.hpp')
-rw-r--r-- | drivers/nrex/nrex.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/nrex/nrex.hpp b/drivers/nrex/nrex.hpp index 2a6aa08e1d..e26a61c39a 100644 --- a/drivers/nrex/nrex.hpp +++ b/drivers/nrex/nrex.hpp @@ -79,7 +79,8 @@ class nrex * This is used to provide the array size of the captures needed for * nrex::match() to work. The size is actually the number of capture * groups + one for the matching of the entire pattern. The result is - * always capped at 100. + * always capped at 10 or 100, depending on the extend option given in + * nrex::compile() (default 10). * * \return The number of captures */ @@ -95,10 +96,13 @@ class nrex * runtime error nrex_compile_error if it encounters a problem when * parsing the pattern. * - * \param The regex pattern + * \param pattern The regex pattern + * \param extended If true, raises the limit on number of capture + * groups and back-references to 99. Otherwise limited + * to 9. Defaults to false. * \return True if the pattern was succesfully compiled */ - bool compile(const nrex_char* pattern); + bool compile(const nrex_char* pattern, bool extended = false); /*! * \brief Uses the pattern to search through the provided string |