Changeset 16632 for branches/2971_named_intervals
- Timestamp:
- 02/28/19 17:18:35 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs
r16628 r16632 22 22 if (match.Success) { 23 23 intervalConstraint.NumberOfDerivation = match.Groups[2].Success ? ParseDerivationCount(match.Groups[2].Value) : 1; 24 intervalConstraint.Definition = match.Groups[3].Value .Trim(' ', '\t', '\n', '\r');24 intervalConstraint.Definition = match.Groups[3].Value; 25 25 intervalConstraint.IsDerivation = true; 26 26 var formulation = Regex.Match(splitted[1], @"([d∂])(.*[^²³])([²³])?"); … … 32 32 } 33 33 } else { 34 intervalConstraint.Definition = Regex.Match(definition, @".*[^.\s]*").Value .Trim(' ','\t','\n','\r');34 intervalConstraint.Definition = Regex.Match(definition, @".*[^.\s]*").Value; 35 35 intervalConstraint.IsDerivation = false; 36 36 } 37 intervalConstraint.Expression = matches[i].Groups[0].Value ;37 intervalConstraint.Expression = matches[i].Groups[0].Value.Trim(' ', '\t', '\n', '\r'); 38 38 intervalConstraint.InclusiveLowerBound = (matches[i].Groups[2].Value == "["); 39 39 intervalConstraint.InclusiveUpperBound = (matches[i].Groups[6].Value == "]");
Note: See TracChangeset
for help on using the changeset viewer.