public static void TranslatePostfix(string key, ref TaggedString __result) { if (key == __result.ToString()) { return; } // __result = __result.Replace("[lr]", "w").Replace("[LR]", "W").Replace("WW", "W").Replace("[Ww]w", "w"); // string.Replace doesn't support regex smdh __result = __result.Replace("l", "w") .Replace("r", "w") .Replace("L", "W") .Replace("R", "W") .Replace("WW", "W") .Replace("Ww", "W") .Replace("wW", "w") .Replace("ww", "w"); }
public static string Italic(this TaggedString self) => self.ToString().Italic();
public static string Bold(this TaggedString self) => self.ToString().Bold();