From a3d209ae35b31e27ddbd10d862d656a1f2f8c009 Mon Sep 17 00:00:00 2001 From: twanvl Date: Wed, 18 Jun 2008 23:26:41 +0000 Subject: [PATCH] Use ScriptRule also for regex functions, optimizing them by pre-compiling default arguments git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@995 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/mse.vcproj | 3 ++ src/script/functions/regex.cpp | 89 ++++++++++++++++++++++++++++++++-- 2 files changed, 89 insertions(+), 3 deletions(-) diff --git a/src/mse.vcproj b/src/mse.vcproj index b12c11b8..c774c810 100644 --- a/src/mse.vcproj +++ b/src/mse.vcproj @@ -2663,6 +2663,9 @@ ObjectFile="$(IntDir)/$(InputName)5.obj"/> + + diff --git a/src/script/functions/regex.cpp b/src/script/functions/regex.cpp index 97c16731..87f3f6dc 100644 --- a/src/script/functions/regex.cpp +++ b/src/script/functions/regex.cpp @@ -12,6 +12,38 @@ #include