private static void RemoveCurrentTimerUnit( SentenceDecorator timerSentenceDecorator, int timerUnitSize) { int firstTimerIndexPosition = timerSentenceDecorator.FirstTimerPosition; timerSentenceDecorator.Texts.RemoveRange( firstTimerIndexPosition, timerUnitSize); }
public static void InsertReversedMDUnitBeforePosition( SentenceDecorator sentenceDecorator, List <Text> reversedMDUnit, int startPosition) { sentenceDecorator.Texts.InsertRange( startPosition, reversedMDUnit); }
public static void RemoveCurrentMDUnit( SentenceDecorator sentenceDecorator, MoveableUnit[] MDPositions, int startPosition) { sentenceDecorator.Texts.RemoveRange( startPosition, MDPositions[MDPositions.Length - 1].EndPosition + 1); }
public static void InsertDeParticleAfterAndUnderline( SentenceDecorator bKBySentenceDecorator, int i) { bKBySentenceDecorator.Texts.Insert( i + 1, CreateNewDeParticle( bKBySentenceDecorator.Texts[i].pe_order, 0)); bKBySentenceDecorator.Texts[i].pe_merge_ahead = 1; }
public static void InsertDeParticleBeforeAndUnderline( SentenceDecorator bkBySentenceDecorator, int i) { var previousOrderNumber = i == 0 ? bkBySentenceDecorator.Texts[i].pe_order - 10 : bkBySentenceDecorator.Texts[i - 1].pe_order; bkBySentenceDecorator.Texts.Insert( i, CreateNewDeParticle( previousOrderNumber, 1)); }
private static void UnderlineTimerUnit( SentenceDecorator timerSentenceDecorator, int newFirstTimerIndexPosition, int timerUnitCount) { timerSentenceDecorator.Texts[newFirstTimerIndexPosition].pe_merge_ahead = timerUnitCount - 1; }