public override string ToString () { return sb.ToString (); }
+ public static implicit operator MText (string str)
+ {
+ return new MText (str);
+ }
+
+ public static explicit operator string (MText mt)
+ {
+ return mt.ToString ();
+ }
+
private static int inc_idx (StringBuilder sb, int i)
{
return (i + (Char.IsHighSurrogate (sb[i]) ? 2 : 1));
return this;
}
+ public MText Del ()
+ {
+ return Del (0, Length);
+ }
+
public MText Del (int from, int to)
{
if (check_range (from, to, true))