Move and add new RegEx test cases

Test cases for 'RegEx' are moved from 'test_string.h' to own test suite
in 'test_regex.h'. Additionally, new tests are introduced and '_init' is
removed as it isn't implemented/used anywhere.
This commit is contained in:
Maximilian Mayer
2020-11-22 21:44:06 +01:00
parent 6bd4074f76
commit 7edb50a31c
3 changed files with 164 additions and 14 deletions

View File

@ -83,7 +83,6 @@ protected:
public:
void clear();
Error compile(const String &p_pattern);
void _init(const String &p_pattern = "");
Ref<RegExMatch> search(const String &p_subject, int p_offset = 0, int p_end = -1) const;
Array search_all(const String &p_subject, int p_offset = 0, int p_end = -1) const;