optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@47 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
e11fef3330
commit
5a264ac696
@ -141,14 +141,16 @@ def parse_op(expr):
|
|||||||
#We split the string into an array, and we parse only the ones with even index
|
#We split the string into an array, and we parse only the ones with even index
|
||||||
quotes=expr.split('"');
|
quotes=expr.split('"');
|
||||||
|
|
||||||
|
|
||||||
|
if (len(quotes)>1):
|
||||||
for i in range (0,len(quotes),2):
|
for i in range (0,len(quotes),2):
|
||||||
for j in symbols:
|
for j in symbols:
|
||||||
quotes[i]=quotes[i].replace(j,"_____%s_____"% (j))
|
quotes[i]=quotes[i].replace(j,"_____%s_____"% (j))
|
||||||
#The parts outside the quotes was parsed, put the string together again
|
#The parts outside the quotes was parsed, put the string together again
|
||||||
|
|
||||||
if (len(quotes)>1):
|
|
||||||
expr= '"'.join(quotes)
|
expr= '"'.join(quotes)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tokens=expr.split("_____")
|
tokens=expr.split("_____")
|
||||||
|
|
||||||
i=0;
|
i=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user