Example #1
0
 public ReplaceCharacterCommand(UCodeManager codeManager, URank pos, byte newCh)
 {
     this.mCodeManager  = codeManager;
     this.mPosition     = pos;
     this.mNewCharacter = newCh;
     this.mOldCharacter = 0;
 }
Example #2
0
 public RemoveRangeStringCommand(UCodeManager codeManager, URank start, URank end)
 {
     this.mCodeManager  = codeManager;
     this.mStart        = start;
     this.mEnd          = end;
     this.mRemoveString = string.Empty;
 }
Example #3
0
 public RemoveStringCommand(UCodeManager codeManager, URank pos, int len)
 {
     this.mCodeManager  = codeManager;
     this.mPosition     = pos;
     this.mLength       = len;
     this.mRemoveString = string.Empty;
 }
Example #4
0
 public ReplaceStringCommand(UCodeManager codeManager, URank pos, int len, string newString)
 {
     this.mCodeManager = codeManager;
     this.mPosition    = pos;
     this.mLength      = len;
     this.mNewString   = newString;
     this.mOldString   = string.Empty;
 }
Example #5
0
        public UParser(UCodeManager codeManager)
        {
            this.mCodeManager = codeManager;

            this.LastCut1 = new UCodeCut();
            this.LastCut2 = new UCodeCut();

            Reset();
        }
Example #6
0
        public InsertRangeStringCommand(UCodeManager codeManager, URank start, string insertString)
        {
            this.mCodeManager  = codeManager;
            this.mStart        = start;
            this.mEnd          = start;
            this.mInsertString = insertString;

            byte[] data = UHelper.TanslateString(insertString);

            for (int i = 0; i < data.Length; i++)
            {
                if (data[i] == UConfig.NewLine)
                {
                    this.mEnd.Row++;
                    this.mEnd.Col = 0;
                    continue;
                }

                this.mEnd.Col++;
            }
        }
Example #7
0
 public InsertStringCommand(UCodeManager codeManager, URank pos, string str)
 {
     this.mCodeManager  = codeManager;
     this.mPosition     = pos;
     this.mInsertString = str;
 }
Example #8
0
 public RemoveCharacterCommand(UCodeManager codeManager, URank pos)
 {
     this.mCodeManager      = codeManager;
     this.mPosition         = pos;
     this.mRemovedCharacter = 0;
 }
Example #9
0
 public InsertCharacterCommand(UCodeManager codeManager, URank pos, byte ch)
 {
     this.mCodeManager     = codeManager;
     this.mPosition        = pos;
     this.mInsertCharacter = ch;
 }
Example #10
0
 public RemoveNewlineByteCommand(UCodeManager codeManager, URank pos)
 {
     this.mCodeManager = codeManager;
     this.mPosition    = pos;
 }
Example #11
0
 public InsertNewLineByteCommand(UCodeManager codeManager, URank pos)
 {
     this.mCodeManager = codeManager;
     this.mPosition    = pos;
 }