Пример #1
0
 private RecordStructure(RecordsRecord rec, SubrecordBase[] subrecordTree, SubrecordStructure[] subrecords)
 {
     this.name = rec.name;
     this.description = rec.desc;
     this.subrecordTree = subrecordTree;
     this.subrecords = subrecords;
 }
Пример #2
0
        protected SubrecordBase(SubrecordBase src, int optional, int repeat)
        {
            if (src.name.StartsWith("&#x"))
            {
                string[] val = src.name.Split(new[] { ';' }, 2, StringSplitOptions.None);
                var      c   = (char)int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null);
                this.name = c + val[1];
            }
            else
            {
                this.name = src.name;
            }

            this.desc     = src.desc;
            this.optional = optional;
            this.repeat   = repeat;
        }
Пример #3
0
        protected SubrecordBase(SubrecordBase src, int optional, int repeat)
        {
            if (src.name.StartsWith("&#x"))
            {
                string[] val = src.name.Split(new[] { ';' }, 2, StringSplitOptions.None);
                var c = (char)int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null);
                this.name = c + val[1];
            }
            else
            {
                this.name = src.name;
            }

            this.desc = src.desc;
            this.optional = optional;
            this.repeat = repeat;
        }
Пример #4
0
 public LoopContext(int start, SubrecordBase[] sss)
 {
     this.idx = start;
     this.ssidx = 0;
     this.sss = sss;
     this.matches = 0;
 }