private static void ReplaceMDUnitBeforeMDBKWithReversedMDUnit( BKBySentenceDecorator bkBySentenceDecorator, MoveableUnit[] MDPositions, List <Text> reversedMDUnit) { int firstModifierIndexAfterBKBy = bkBySentenceDecorator.FirstModifierIndexAfterBKBy; ModifierPositionHelper.RemoveCurrentMDUnit( bkBySentenceDecorator, MDPositions, firstModifierIndexAfterBKBy); ModifierPositionHelper.InsertReversedMDUnitBeforePosition( bkBySentenceDecorator, reversedMDUnit, firstModifierIndexAfterBKBy); }
private void SortModifiersInDescendingNumericOrder( List <Text> modifiers, int firstModifierPosition, MoveableUnit[] mdPositions) { ModifierPositionHelper.RemoveCurrentMDUnit( _mdSentenceDecorator, mdPositions, firstModifierPosition); Array.Reverse(mdPositions); List <Text> reversedMdUnit = MoveableUnitHelper.GetTextsFromMoveablePositionsList( modifiers, mdPositions); ModifierPositionHelper.InsertReversedMDUnitBeforePosition( _mdSentenceDecorator, reversedMdUnit, firstModifierPosition); }
private void SortReversableUnitInDescendingNumericOrderAndMoveBeforeNN( List <Text> modifiersUpToVBorBK, int firstModifierPosition, int newPosition, MoveableUnit[] mdPositions) { ModifierPositionHelper.RemoveCurrentMDUnit( _prenNNPastSentenceDecorator, mdPositions, firstModifierPosition); Array.Reverse(mdPositions); List <Text> reversedMDUnit = MoveableUnitHelper.GetTextsFromMoveablePositionsList( modifiersUpToVBorBK, mdPositions); ModifierPositionHelper.InsertReversedMDUnitBeforePosition( _prenNNPastSentenceDecorator, reversedMDUnit, newPosition); }