Do bulk replace of stl types.

This commit is contained in:
jmsgrogan 2023-12-21 09:18:44 +00:00
parent 521486be62
commit c25a56ee19
531 changed files with 2274 additions and 2181 deletions

View file

@ -1,7 +1,7 @@
#pragma once
#include <vector>
#include <string>
#include "Vector.h"
#include "String.h"
#include <filesystem>
class TemplateNode;
@ -16,9 +16,9 @@ public:
~TemplateFile();
std::string dumpContent();
String dumpContent();
std::string getName() const;
String getName() const;
TemplateNode* getContent() const;
@ -27,32 +27,32 @@ public:
void loadContent();
private:
std::size_t checkForStatement(const std::string& lineSection);
std::size_t checkForStatement(const String& lineSection);
std::size_t checkForExpression(const std::string& lineSection);
std::size_t checkForExpression(const String& lineSection);
void onTextSpanFinished();
void onFoundStatement(const std::string& statement_string);
void onFoundStatement(const String& statement_string);
void onFoundExpression(const std::string& expression_string);
void onFoundExpression(const String& expression_string);
void onFoundBlock(const std::vector<std::string> args);
void onFoundBlock(const Vector<String> args);
void onFoundEndBlock(const std::vector<std::string> args);
void onFoundEndBlock(const Vector<String> args);
void onFoundExtends(const std::vector<std::string> args);
void onFoundExtends(const Vector<String> args);
void processLine(const std::string& line);
void processLine(const String& line);
Path mPath;
std::string mParentName;
std::vector<std::string> mRawContent;
String mParentName;
Vector<String> mRawContent;
bool mHasLoaded{false};
std::unique_ptr<TemplateNode> mRootNode;
Ptr<TemplateNode> mRootNode;
TemplateNode* mWorkingNode{ nullptr };
std::string mWorkingLineContent;
std::unique_ptr<TemplateTextBody> mWorkingTextSpan;
String mWorkingLineContent;
Ptr<TemplateTextBody> mWorkingTextSpan;
};