// 读取下一个字符 private byte GetNextByte() { try { if (EndOfCode) { return(0); } OldRowIndex = RowIndex; OldColIndex = ColIndex; if (ColIndex >= mCodeManager.GetCodeLength(RowIndex)) { RowIndex++; ColIndex = 0; } if (RowIndex >= mCodeManager.GetCodeCount()) { EndOfCode = true; return(0); } byte b = mCodeManager.GetCodeByte(new URank(RowIndex, ColIndex)); ColIndex++; return(b); } catch (Exception ex) { throw ex; } }
public void Execute() { mRemovedCharacter = mCodeManager.GetCodeByte(mPosition); mCodeManager.RemoveCharacter(mPosition); }
public void Execute() { mOldCharacter = mCodeManager.GetCodeByte(mPosition); mCodeManager.ReplaceCharacter(mPosition, mNewCharacter); }