/// <summary> /// Initializes a new instance of the <see cref="VSSParser" /> class. /// </summary> /// <param name="entry">The entry.</param> /// <param name="locale">The locale.</param> /// <remarks></remarks> protected VSSParser(string entry, IVssLocale locale) { this.entry = entry.Replace(Convert.ToChar(160).ToString(CultureInfo.CurrentCulture), string.Empty); this.locale = locale; string regex = string.Format(CultureInfo.CurrentCulture, @"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword); REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline); this.locale = locale; }
/// <summary> /// Initializes a new instance of the <see cref="Vss" /> class. /// </summary> /// <param name="locale">The locale.</param> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <param name="registry">The registry.</param> /// <remarks></remarks> public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor) { this.registry = registry; this.locale = locale; this.Project = DefaultProject; this.ApplyLabel = false; this.AutoGetSource = true; this.AlwaysGetLatest = false; this.CleanCopy = true; }
public VSSParser(string entry, IVssLocale locale) { this.entry = entry.Replace(Convert.ToChar(160).ToString(), ""); this.entry = entry.Replace(Environment.NewLine, ""); this.locale = locale; string regex = string.Format(@"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword); REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline); this.locale = locale; }
public static VSSParser CreateParser(string entry, IVssLocale locale) { string vssKeyworkdLine = ReadVSSKeywordLine(entry); if (vssKeyworkdLine.IndexOf(locale.CheckedInKeyword) > -1) { return(new CheckInParser(entry, locale)); } else if (vssKeyworkdLine.IndexOf(locale.AddedKeyword) > -1) { return(new AddedParser(entry, locale)); } else if (vssKeyworkdLine.IndexOf(locale.DeletedKeyword) > -1) { return(new DeletedParser(entry, locale)); } else if (vssKeyworkdLine.IndexOf(locale.DestroyedKeyword) > -1) { return(new DestroyedParser(entry, locale)); } return(new NullParser(entry, locale)); }
public VSSParser(string entry, IVssLocale locale) { this.entry = entry.Replace(Convert.ToChar(160).ToString(), ""); this.entry = entry.Replace(Environment.NewLine, ""); this.locale = locale; string regex = string.Format(@"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword); REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline); this.locale = locale; }
public static VSSParser CreateParser(string entry, IVssLocale locale) { string vssKeyworkdLine = ReadVSSKeywordLine(entry); if (vssKeyworkdLine.IndexOf(locale.CheckedInKeyword) > -1) { return new CheckInParser(entry, locale); } else if (vssKeyworkdLine.IndexOf(locale.AddedKeyword) > -1) { return new AddedParser(entry, locale); } else if (vssKeyworkdLine.IndexOf(locale.DeletedKeyword) > -1) return new DeletedParser(entry, locale); else if (vssKeyworkdLine.IndexOf(locale.DestroyedKeyword) > -1) return new DestroyedParser(entry, locale); return new NullParser(entry, locale); }
public NullParser(string entry, IVssLocale locale) : base(entry, locale) { }
public VssHistoryParser(IVssLocale locale) { this.locale = locale; }
public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor) { this.registry = registry; this.locale = locale; }
private Vss(IVssLocale locale) : this(locale, new VssHistoryParser(locale), new ProcessExecutor(), new Registry()) { }
public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor) { this.registry = registry; this.locale = locale; }
/// <summary> /// Initializes a new instance of the <see cref="VSSParser" /> class. /// </summary> /// <param name="entry">The entry.</param> /// <param name="locale">The locale.</param> /// <remarks></remarks> protected VSSParser(string entry, IVssLocale locale) { this.entry = entry.Replace(Convert.ToChar(160).ToString(CultureInfo.CurrentCulture),string.Empty); this.locale = locale; string regex = string.Format(CultureInfo.CurrentCulture, @"{0}:(.+){1}:(.+){2}:(.+)$", locale.UserKeyword, locale.DateKeyword, locale.TimeKeyword); REGEX_USER_DATE_LINE = new Regex(regex, RegexOptions.Multiline); this.locale = locale; }
public CheckInParser(string entry, IVssLocale locale) : base(entry, locale) { }
/// <summary> /// Initializes a new instance of the <see cref="Vss" /> class. /// </summary> /// <param name="locale">The locale.</param> /// <param name="historyParser">The history parser.</param> /// <param name="executor">The executor.</param> /// <param name="registry">The registry.</param> /// <remarks></remarks> public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor) { this.registry = registry; this.locale = locale; this.Project = DefaultProject; this.ApplyLabel = false; this.AutoGetSource = true; this.AlwaysGetLatest = false; this.CleanCopy = true; }
public NullParser(string entry, IVssLocale locale) : base(entry, locale) { }
public DestroyedParser(string entry, IVssLocale locale) : base(entry, locale) { }
public AddedParser(string entry, IVssLocale locale) : base(entry, locale) { }
public CheckInParser(string entry, IVssLocale locale) : base(entry, locale) { }
public VssHistoryParser(IVssLocale locale) { this.locale = locale; }
public DeletedParser(string entry, IVssLocale locale) : base(entry, locale) { }
private Vss(IVssLocale locale) : this(locale, new VssHistoryParser(locale), new ProcessExecutor(), new Registry()) { }