PIString hard optimization

This commit is contained in:
2020-07-31 14:12:47 +03:00
parent 1d5c979607
commit e728b30e5e
7 changed files with 318 additions and 258 deletions

View File

@@ -331,13 +331,13 @@ void makeGetterValue(PIFile & f, const PICodeParser::Entity * e) {
void writeModel(PICodeParser & parser, PICLI & cli, const PIString out, bool meta, bool enums, bool streams, bool texts, bool getters) {
PIVector<const PICodeParser::Entity * > ventities;
PIString defname = out
.replaceAll(".", "_")
.replaceAll("/", "_")
.replaceAll(":", "_")
.replaceAll("-", "_")
.replaceAll("@", "_")
.replaceAll("\\", "_")
.removeAll(" ")
.replacedAll('.', '_')
.replaceAll('/', '_')
.replaceAll(':', '_')
.replaceAll('-', '_')
.replaceAll('@', '_')
.replaceAll('\\', '_')
.removeAll(' ')
.toUpperCase()
+ "_H";
bool inc_h, inc_cpp;