Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/28/19 12:41:36 (6 years ago)
Author:
gkronber
Message:

#2971: made branch compile with current version of trunk

Location:
branches/2971_named_intervals
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals

    • Property svn:ignore set to
      packages
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraint.cs

    r16596 r16628  
    44using System.Text;
    55using System.Threading.Tasks;
     6using HEAL.Attic;
    67
    78namespace HeuristicLab.Problems.DataAnalysis {
     9  [StorableType("8109BE58-CCFB-4462-A2F4-EEE5DFADAFF7")]
    810  public class IntervalConstraint {
    911    public string Expression { get; set; }
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs

    r16592 r16628  
    22using System.Collections.Generic;
    33using System.Globalization;
    4 using System.IO;
    5 using System.Linq;
    6 using System.Text;
    74using System.Text.RegularExpressions;
    8 using System.Threading.Tasks;
    9 using HeuristicLab.Optimization;
    105
    116namespace HeuristicLab.Problems.DataAnalysis {
     
    2722            if (match.Success) {
    2823              intervalConstraint.NumberOfDerivation = match.Groups[2].Success ? ParseDerivationCount(match.Groups[2].Value) : 1;
    29               intervalConstraint.Definition = match.Groups[3].Value;
     24              intervalConstraint.Definition = match.Groups[3].Value.Trim(' ', '\t', '\n', '\r');
    3025              intervalConstraint.IsDerivation = true;
    3126              var formulation = Regex.Match(splitted[1], @"([d∂])(.*[^²³])([²³])?");
     
    3732            }
    3833          } else {
    39             intervalConstraint.Definition = Regex.Match(definition, @".*[^.\s]*").Value;
     34            intervalConstraint.Definition = Regex.Match(definition, @".*[^.\s]*").Value.Trim(' ','\t','\n','\r');
    4035            intervalConstraint.IsDerivation = false;
    4136          }
Note: See TracChangeset for help on using the changeset viewer.