public CharsRef subtract(CharsRef output, CharsRef inc) {assert output != null;assert inc != null;if (inc == NO_OUTPUT) {return output;} else if (inc.length == output.length) {return NO_OUTPUT;} else {assert inc.length < output.length: "inc.length=" + inc.length + " vs output.length=" + output.length;assert inc.length > 0;return new CharsRef(output.chars, output.offset + inc.length, output.length-inc.length);}}
public override CharsRef Subtract(CharsRef output, CharsRef inc){Debug.Assert(output != null);Debug.Assert(inc != null);if (inc == NO_OUTPUT){return output;}else if (inc.Length == output.Length){return NO_OUTPUT;}else{Debug.Assert(inc.Length < output.Length, "inc.Length=" + inc.Length + " vs output.Length=" + output.Length);Debug.Assert(inc.Length > 0);return new CharsRef(output.Chars, output.Offset + inc.Length, output.Length - inc.Length);}}