Пример #1
0
        // �R���X�g���N�^
        public TemplateRegexParser(EcmProject proj, EcmLog log, string templateName)
        {
            myProject = proj;
            myLog = log;
            myTemplateName = templateName;

            myPlaceHolderSets["{num}"] = new PlaceHolder("num", "-?[0-9]*", "-100");
            myPlaceHolderSets["{num+}"] = new PlaceHolder("num", "-?[0-9]+", "-100");
            myPlaceHolderSets["{uri}"] = new PlaceHolder("uri", "[-._~;?:@&=*+&,/#\\[\\]()a-zA-Z0-9]*", "#");
            myPlaceHolderSets["{uri+}"] = new PlaceHolder("uri", "[-._~;?:@&=*+&,/#\\[\\]()a-zA-Z0-9]*", "#");
            myPlaceHolderSets["{text}"] = new PlaceHolder("text", "[^\\n<]*", "�e�L�X�g�e�L�X�g�e�L�X�g");
            myPlaceHolderSets["{text+}"] = new PlaceHolder("text", "[^\\n<]+", "�e�L�X�g�e�L�X�g�e�L�X�g");
            myPlaceHolderSets["{any}"] = new PlaceHolder("any", ".*", "??????????");
            myPlaceHolderSets["{any+}"] = new PlaceHolder("any", ".+", "??????????");
        }
Пример #2
0
 // �ʂ̃��O��������܂��B
 public void Append(EcmLog log)
 {
     foreach(EcmLogItem el in log.GetAll()){
         Add(el);
     }
 }