Skip to content
Snippets Groups Projects
Commit 1751b7ba authored by zldunn's avatar zldunn Committed by jsclose
Browse files

HOTFIX for the extra space bug

parent 8790a0fb
No related branches found
No related tags found
1 merge request!9Website
......@@ -299,8 +299,8 @@ add_executable(testISRQueryTuple
add_executable(query-queryLanguage-tests
query/queryLanguage/QueryParser.cpp
query/queryLanguage/QueryParser.h
util/DataStructureLib/tuple.cpp
)
......
......@@ -4,7 +4,7 @@
#include "QueryParser.h"
#include<unordered_set>
#include "../../util/stringProcessing.h"
//#include "../../util/stringProcessing.h"
#include<iostream>
/***
* QUERY PARSER CLASS
......@@ -47,6 +47,10 @@ Token QueryParser::FindNextToken( int &index ){
}
else if ( stopChars.count( query[ start + size ] ) > 0)
{
while( query[start] == ' ')
{
++start;
}
index = start + size;
string text = query.substr ( start, size );
cout << "horse" << text;
......
......@@ -76,4 +76,9 @@ public:
}
}
int getNumberOfChildren()
{
return Next.size();
}
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment