Ejemplo n.º 1
0
 public ReplaceCharacterCommand(UCodeManager codeManager, URank pos, byte newCh)
 {
     this.mCodeManager  = codeManager;
     this.mPosition     = pos;
     this.mNewCharacter = newCh;
     this.mOldCharacter = 0;
 }
Ejemplo n.º 2
0
 public RemoveRangeStringCommand(UCodeManager codeManager, URank start, URank end)
 {
     this.mCodeManager  = codeManager;
     this.mStart        = start;
     this.mEnd          = end;
     this.mRemoveString = string.Empty;
 }
Ejemplo n.º 3
0
 public RemoveStringCommand(UCodeManager codeManager, URank pos, int len)
 {
     this.mCodeManager  = codeManager;
     this.mPosition     = pos;
     this.mLength       = len;
     this.mRemoveString = string.Empty;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
        public UParser(UCodeManager codeManager)
        {
            this.mCodeManager = codeManager;

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

            Reset();
        }
Ejemplo n.º 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++;
            }
        }
Ejemplo n.º 7
0
 public InsertStringCommand(UCodeManager codeManager, URank pos, string str)
 {
     this.mCodeManager  = codeManager;
     this.mPosition     = pos;
     this.mInsertString = str;
 }
Ejemplo n.º 8
0
 public RemoveCharacterCommand(UCodeManager codeManager, URank pos)
 {
     this.mCodeManager      = codeManager;
     this.mPosition         = pos;
     this.mRemovedCharacter = 0;
 }
Ejemplo n.º 9
0
 public InsertCharacterCommand(UCodeManager codeManager, URank pos, byte ch)
 {
     this.mCodeManager     = codeManager;
     this.mPosition        = pos;
     this.mInsertCharacter = ch;
 }
Ejemplo n.º 10
0
 public RemoveNewlineByteCommand(UCodeManager codeManager, URank pos)
 {
     this.mCodeManager = codeManager;
     this.mPosition    = pos;
 }
Ejemplo n.º 11
0
 public InsertNewLineByteCommand(UCodeManager codeManager, URank pos)
 {
     this.mCodeManager = codeManager;
     this.mPosition    = pos;
 }