- Abstracted the XML-HTML Parser into a neat little state machine

- Added Settings classes for all things XML-HTML conversion
This commit is contained in:
schnulller
2022-05-19 22:34:49 +02:00
parent 2ed7265869
commit d054cf07e1
25 changed files with 1276 additions and 725 deletions

View File

@@ -0,0 +1,19 @@
namespace HaWeb.Settings.ParsingState;
using System.Text;
public class EditState : HaWeb.HTMLParser.IState {
internal bool active_del;
internal bool active_skipwhitespace;
internal StringBuilder sb_edits;
public EditState() {
SetupState();
}
public void SetupState() {
sb_edits = new StringBuilder();
active_del = false;
active_skipwhitespace = true;
}
}