Ejemplo n.º 1
0
 private static string RemoveTailPeriodSymbol(string value)
 {
     value = value.TrimEnd();
     foreach (string period in DefPeriod.GetPeriods().Keys)
     {
         if (value.ToLower().EndsWith(period))
         {
             value = value.Substring(0, value.Length - period.Length);
             break;
         }
     }
     return(value);
 }
 private double HandlePeriodFactor(out string xmlCleaned)
 {
     xmlCleaned = xmlValue;
     foreach (var p in DefPeriod.GetPeriods())
     {
         if (!xmlCleaned.EndsWith(p.Key))
         {
             continue;                              // needs to end with period, as a number cannot have footnotes
         }
         xmlCleaned = xmlCleaned.Substring(0, xmlCleaned.Length - p.Key.Length);
         return(p.Value);
     }
     return(1.0);
 }