Elmah.SccStamp.SccStamp C# (CSharp) Méthode

SccStamp() static private méthode

static private SccStamp ( ) : System
Résultat System
        static SccStamp()
        {
            //
            // Expression to help parse:
            //
            // STAMP := "$Id:" FILENAME REVISION DATE TIME "Z" USERNAME "$"
            // DATE  := 4-DIGIT-YEAR "-" 2-DIGIT-MONTH "-" 2-DIGIT-DAY
            // TIME  := HH ":" MM ":" SS
            //

            var escapedNonFileNameChars = Regex.Escape(new string(Path.GetInvalidFileNameChars()));

            _regex = new Regex(
                @"\$ id: \s* 
                     (?<f>[^" + escapedNonFileNameChars + @"]+) \s+         # FILENAME
                     (?<r>[0-9]+) \s+                                       # REVISION
                     ((?<y>[0-9]{4})-(?<mo>[0-9]{2})-(?<d>[0-9]{2})) \s+    # DATE
                     ((?<h>[0-9]{2})\:(?<mi>[0-9]{2})\:(?<s>[0-9]{2})Z) \s+ # TIME (UTC)
                     (?<a>\w+)                                              # AUTHOR",
                RegexOptions.CultureInvariant
                | RegexOptions.IgnoreCase
                | RegexOptions.IgnorePatternWhitespace
                | RegexOptions.Singleline
                | RegexOptions.ExplicitCapture
                | RegexOptions.Compiled);
        }

Same methods

SccStamp::SccStamp ( string id ) : System