aboutsummaryrefslogtreecommitdiff
path: root/drivers/nrex/regex.cpp
diff options
context:
space:
mode:
authorZher Huei Lee2015-12-04 21:18:41 +0000
committerZher Huei Lee2015-12-04 21:18:41 +0000
commitd0ddf150d9c7207f87409b5899297dae0fc0b708 (patch)
tree0a4e0fcd8a4c48163c67fc19f17813f3b44ad23e /drivers/nrex/regex.cpp
parent5b0dcab3e85a4b2147ec23a06f7845246f8cb538 (diff)
downloadgodot-d0ddf150d9c7207f87409b5899297dae0fc0b708.tar.gz
godot-d0ddf150d9c7207f87409b5899297dae0fc0b708.tar.zst
godot-d0ddf150d9c7207f87409b5899297dae0fc0b708.zip
Diffstat (limited to 'drivers/nrex/regex.cpp')
-rw-r--r--drivers/nrex/regex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nrex/regex.cpp b/drivers/nrex/regex.cpp
index 246384b10..e8578221a 100644
--- a/drivers/nrex/regex.cpp
+++ b/drivers/nrex/regex.cpp
@@ -15,7 +15,7 @@
void RegEx::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("compile","pattern", "expanded"),&RegEx::compile, DEFVAL(true));
+ ObjectTypeDB::bind_method(_MD("compile","pattern", "capture"),&RegEx::compile, DEFVAL(9));
ObjectTypeDB::bind_method(_MD("find","text","start","end"),&RegEx::find, DEFVAL(0), DEFVAL(-1));
ObjectTypeDB::bind_method(_MD("clear"),&RegEx::clear);
ObjectTypeDB::bind_method(_MD("is_valid"),&RegEx::is_valid);
@@ -68,11 +68,11 @@ String RegEx::get_capture(int capture) const {
}
-Error RegEx::compile(const String& p_pattern, bool expanded) {
+Error RegEx::compile(const String& p_pattern, int capture) {
clear();
- exp.compile(p_pattern.c_str(), expanded);
+ exp.compile(p_pattern.c_str(), capture);
ERR_FAIL_COND_V( !exp.valid(), FAILED );