public static Utf8String Quote(Utf8String s) { var sb = new BytesStore(s.ByteLength); Quote(s, sb); return(new Utf8String(sb.Bytes)); }
public static Utf8String Unquote(Utf8String src) { var count = Unquote(src, null); if (count == src.ByteLength - 2) { return(src.Subbytes(1, src.ByteLength - 2)); } else { var sb = new BytesStore(count); Unquote(src, sb); return(new Utf8String(sb.Bytes)); } }