Exemplo n.º 1
0
        private static LiteralNumeral CreateVinculum(LiteralNumeral numeral, char marker, int factor)
        {
            var literal = new StringBuilder();

            foreach (var c in numeral.Literal)
            {
                literal.AppendFormat("{0}{1}", c, marker);
            }
            return(new LiteralNumeral(literal.ToString(), (uint)(numeral.Digit * factor), numeral.Flags | NumeralFlags.Vinculum));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a literal numeral
 /// </summary>
 /// <param name="literalNumerals"></param>
 /// <param name="literalNumeral"></param>
 private static void AddLiteralNumeral(IDictionary <uint, IList <LiteralNumeral> > literalNumerals, LiteralNumeral literalNumeral)
 {
     literalNumerals.TryGetOrAddNew(literalNumeral.Digit, () => new List <LiteralNumeral>()).Add(literalNumeral);
 }