Add ability to set the RegexMatcher in Editbox

Create issue
Issue #521 resolved
Former user created an issue

Automatic migration. Original reporter: "pmiddend"

With this patch, the user is able to set the RegexMatcher in the Editbox. This way, one can write and set a custom matcher (one using boost::regex, for example, or one which doesn't even use regular expressions) without touching CEGUI directly.

Reproducibility: N/A

Comments (2)

  1. Paul Turner

    Not sure about the patch as I did not look at it yet, but this facility has been requested for some time and so should be added for 0.8

  2. Paul Turner

    Applied the patch with some changes / enhancements.

    Changes basically this consist of the editbox not taking ownership of the passed RegexMatcher (we use an approach of whoever created it must destroy it), and I also added a facility so that when a 0 instance is passed, it will restore a system created RegexMatcher instance if the system was built with that support.

    Thanks a lot for the initial patch :)

    changeset: 3356:1add9ddec1f9 user: Paul Turner <> date: Wed Jun 13 18:30:10 2012 +0100 summary: ADD: Provide function to set custom RegexMatcher validator instance on Editbox.

  3. Log in to comment