Precompile regular expressions on construction from constant string so it won't need to compile on first call.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3046 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-01-31 20:05:43 +00:00
parent f449fd6d51
commit 2d27ec675c
1 changed files with 1 additions and 0 deletions

View File

@ -1261,6 +1261,7 @@ Regexp::Regexp(const char* value, bool extended, bool insensitive)
XDebug(DebugAll,"Regexp::Regexp(\"%s\",%d,%d) [%p]",
value,extended,insensitive,this);
setFlags(extended,insensitive);
compile();
}
Regexp::Regexp(const Regexp& value)