public IEnumerable <string> Extract(IExtractData extractData)
        {
            var sourceThousandsSeparators = extractData.Settings.GetSourceThousandSeparators();
            var targetThousandSeparators  = extractData.Settings.GetTargetThousandSeparators();

            return(sourceThousandsSeparators.Concat(targetThousandSeparators));
        }
Ejemplo n.º 2
0
 public IEnumerable <string> Extract(IExtractData extractData)
 {
     if (Specification.IsSatisfiedBy(extractData))
     {
         return(TruthProcessor.Extract(extractData));
     }
     return(Enumerable.Empty <string>());
 }
Ejemplo n.º 3
0
        public IEnumerable <string> Extract(IExtractData extractData)
        {
            var defaultSelectedSeparators = (from n in Nodes
                                             from r in n.Extract(extractData)
                                             select r).ToList();

            return(defaultSelectedSeparators.Contains("'") ?
                   defaultSelectedSeparators.Concat(new[] { @"\u2019", @"\u2027" }) :
                   defaultSelectedSeparators);
        }
Ejemplo n.º 4
0
        public bool IsSatisfiedBy(IExtractData numberExtractResults)
        {
            //char[] dashSign = { '-', '\u2013', '\u2212' };
            //char[] space = { ' ', '\u00a0', '\u2009', '\u202F' };

            //if (numberExtractResults.Text.IndexOfAny(dashSign) == 0 &&
            //    numberExtractResults.Text.IndexOfAny(space) == 1)
            //{
            //    return true;
            //}

            return(false);
        }
 public IEnumerable <string> Extract(IExtractData extractData)
 {
     return(extractData.Settings.GetTargetThousandSeparators());
 }
 public IEnumerable <string> Extract(IExtractData extractData)
 {
     return((from n in Nodes
             from r in n.Extract(extractData)
             select r).ToList().Distinct());
 }
Ejemplo n.º 7
0
 public static void SetExtractData(this BuildContext context, IExtractData extractData)
 {
     context.SetItem(ETL_EXTRACT_DATA, extractData);
 }
Ejemplo n.º 8
0
 public IEnumerable <string> Extract(IExtractData extractData)
 {
     return(extractData.Settings.GetSourceDecimalSeparators());
 }
Ejemplo n.º 9
0
 public bool IsSatisfiedBy(IExtractData numberExtractResults)
 {
     return(Specifications.Any(s => s.IsSatisfiedBy(numberExtractResults)));
 }
 public bool IsSatisfiedBy(IExtractData numberExtractResults)
 {
     return(numberExtractResults.Settings.SourceOmitLeadingZero);
 }
 public bool IsSatisfiedBy(IExtractData numberExtractResults)
 {
     return(numberExtractResults.Settings.AllowLocalizations);
 }
Ejemplo n.º 12
0
 public IEnumerable <string> Extract(IExtractData extractData)
 {
     return(from n in this.Nodes
            from r in n.Extract(extractData)
            select r);
 }
Ejemplo n.º 13
0
 public ExpenseController(IExtractData extractDataService, ICalculateGST calculationService)
 {
     this._calculationService = calculationService;
     this._extractDataService = extractDataService;
 }