添加项目文件。

This commit is contained in:
Zel
2025-01-22 23:31:03 +08:00
parent 1b8ba6771f
commit 2ae76476fb
894 changed files with 774558 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
namespace TightWiki.Engine
{
public class WikiString
{
public WikiString()
{
}
public WikiString(string value)
{
Value = value;
}
public string Value { get; set; } = string.Empty;
public int Length => Value.Length;
public void Replace(string oldValue, string newValue)
{
Value = Value.Replace(oldValue, newValue);
}
public void Insert(int position, string value)
{
Value = Value.Insert(position, value);
}
public void Clear()
{
Value = string.Empty;
}
public void Append(string value)
{
Value += value;
}
public new string ToString()
{
return Value;
}
}
}