Changeset 34110

Show
Ignore:
Timestamp:
06/24/09 08:38:37 (4 years ago)
Author:
hoge1e3
Message:
 
Location:
lang/csharp/soyText/soyText
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/soyText/soyText/ParsedDocument.cs

    r34020 r34110  
    1111        Document src; 
    1212        public Dictionary<String, String> values; 
     13        public bool parseError = false; 
    1314        private string _body; 
    1415        public string body 
     
    102103        void init() { 
    103104            var resting = false; 
     105            string key = null; 
    104106            _body = ""; 
    105107            List<string> cdrs = new List<string>(); 
     
    111113                { 
    112114                    resting = true; 
     115                    continue; 
     116                } 
     117                if (key != null) 
     118                { 
     119                    var m3 = Regex.Match(line, "^ (.*)"); 
     120                    if (m3.Success) 
     121                    { 
     122                        values[key] += "\r\n" + m3.Groups[1]; 
     123                    } 
     124                    else 
     125                    { 
     126                        key = null; 
     127                    } 
    113128                } 
    114129                var m2 = Regex.Match(line, "([^:]+): *(.*)"); 
    115130                if (m2.Success) 
    116131                { 
    117                     values[m2.Groups[1].Value] = m2.Groups[2].Value; 
     132                    key = m2.Groups[1].Value; 
     133                    values[key] = m2.Groups[2].Value; 
     134                } 
     135                else 
     136                { 
     137                    parseError = true; 
    118138                } 
    119139            } 
  • lang/csharp/soyText/soyText/bin/Debug/soyText.application

    r34101 r34110  
    1212        </dsig:Transforms> 
    1313        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    14         <dsig:DigestValue>kL+zqxU1+NVrMoDP3RjHpKjWr4Y=</dsig:DigestValue> 
     14        <dsig:DigestValue>DX9zoofR/RmeoTaIdbsZOOfLPvI=</dsig:DigestValue> 
    1515      </hash> 
    1616    </dependentAssembly> 
  • lang/csharp/soyText/soyText/bin/Debug/soyText.exe.manifest

    r34101 r34110  
    120120        </dsig:Transforms> 
    121121        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    122         <dsig:DigestValue>NCe7azDev8e+yfo1JnHq9p1F6uE=</dsig:DigestValue> 
     122        <dsig:DigestValue>HDN28cdWpdxgVHLrunHve1EDKqs=</dsig:DigestValue> 
    123123      </hash> 
    124124    </dependentAssembly> 
  • lang/csharp/soyText/soyText/bin/Debug/soyText.vshost.application

    r34101 r34110  
    1212        </dsig:Transforms> 
    1313        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    14         <dsig:DigestValue>kL+zqxU1+NVrMoDP3RjHpKjWr4Y=</dsig:DigestValue> 
     14        <dsig:DigestValue>DX9zoofR/RmeoTaIdbsZOOfLPvI=</dsig:DigestValue> 
    1515      </hash> 
    1616    </dependentAssembly>