private void cut ( final char [ ] revA , final DiffBlock curA ) { String text = copy ( revA , curA . getRevAStart ( ) , curA . getRevAEnd ( ) ) ; // Cut (C S E B) DiffPart action = new DiffPart ( DiffAction . CUT ) ; // S action . setStart ( version . length ( ) ) ; codecData . checkBlocksizeS ( version . length ( ) ) ; // E action . setLength ( curA . getRevAEnd ( ) - curA . getRevAStart ( ) ) ; codecData . checkBlocksizeE ( action . getLength ( ) ) ; // B action . setText ( Integer . toString ( curA . getId ( ) ) ) ; codecData . checkBlocksizeB ( curA . getId ( ) ) ; diff . add ( action ) ; bufferMap . put ( curA . getId ( ) , text ) ; }
Creates a cut operation .