我滴个乖乖

This commit is contained in:
zel
2025-02-20 15:20:28 +08:00
parent 4b54cca70b
commit 485cfcd6f2
2343 changed files with 495732 additions and 1022 deletions

View File

@@ -0,0 +1,43 @@
namespace ZelWiki.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;
}
}
}