public LazyString CreateCopyWithGroups(RelatedMatch match) { if (match != null) { foreach (var link in _groupsLinks) { if (match.Groups[link.Value].Success) { var oldLength = link.Key.Value.Length; link.Key.Value = new LazySubstring(match.Groups[link.Value].Value); _parcedWorkingCopy.Length += link.Key.Value.Length - oldLength; } } } return(_parcedWorkingCopy.CreateCopy()); }
public LazyString CreateCopyWithGroups(RelatedMatch match) { if (match != null) { foreach (var link in _groupsLinks) { if (match.Groups[link.Value].Success) { var oldLength = link.Key.Value.Length; link.Key.Value = new LazySubstring(match.Groups[link.Value].Value); _parcedWorkingCopy.Length += link.Key.Value.Length - oldLength; } } } return _parcedWorkingCopy.CreateCopy(); }