Many fixes for script handling.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-22 14:11:03 +01:00
parent c56b001ce4
commit f8427fa594
8 changed files with 43 additions and 16 deletions

View File

@@ -68,7 +68,8 @@ public:
if (isDecl) {
// Insert the name and decl into the dictionary. Close off the decl with eof as well.
decl[pos] = '\0';
innerDb.Insert(ArbUt::StringView(name), ArbUt::StringView::CalculateHash(decl));
innerDb.Set(ArbUt::StringView(name), ArbUt::StringView::CalculateHash(decl));
}
// If we have found \1, we are done with the current category, so break.
break;
@@ -79,7 +80,7 @@ public:
if (isDecl) {
// Insert the name and decl into the dictionary. Close off the decl with eof as well.
decl[pos] = '\0';
innerDb.Insert(ArbUt::StringView(name), ArbUt::StringView::CalculateHash(decl));
innerDb.Set(ArbUt::StringView(name), ArbUt::StringView::CalculateHash(decl));
// Reset our position and toggle back to name.
pos = 0;
isDecl = false;
@@ -101,7 +102,7 @@ public:
}
}
}
types.Insert(categoryArr[0], innerDb);
types.Set(categoryArr[0], innerDb);
}
return types;
}