CollectPartsUnderOneThousand() private static method

private static CollectPartsUnderOneThousand ( ICollection parts, int number, GrammaticalGender gender ) : void
parts ICollection
number int
gender GrammaticalGender
return void
        // Token: 0x060001D8 RID: 472 RVA: 0x0000AA0C File Offset: 0x00008C0C
        private static void CollectParts(ICollection <string> parts, ref int number, int divisor, GrammaticalGender gender, params string[] forms)
        {
            if (number < divisor)
            {
                return;
            }
            int result = number / divisor;

            number %= divisor;
            UkrainianNumberToWordsConverter.CollectPartsUnderOneThousand(parts, result, gender);
            parts.Add(UkrainianNumberToWordsConverter.ChooseOneForGrammaticalNumber(result, forms));
        }
        // Token: 0x060001D4 RID: 468 RVA: 0x0000A660 File Offset: 0x00008860
        public override string Convert(long input, GrammaticalGender gender)
        {
            if (input > 2147483647L || input < -2147483648L)
            {
                throw new NotImplementedException();
            }
            int number = (int)input;

            if (number == 0)
            {
                return("нуль");
            }
            List <string> parts = new List <string>();

            if (number < 0)
            {
                parts.Add("мінус");
                number = -number;
            }
            UkrainianNumberToWordsConverter.CollectParts(parts, ref number, 1000000000, GrammaticalGender.Masculine, new string[]
            {
                "мільярд",
                "мільярда",
                "мільярдів"
            });
            UkrainianNumberToWordsConverter.CollectParts(parts, ref number, 1000000, GrammaticalGender.Masculine, new string[]
            {
                "мільйон",
                "мільйона",
                "мільйонів"
            });
            UkrainianNumberToWordsConverter.CollectParts(parts, ref number, 1000, GrammaticalGender.Feminine, new string[]
            {
                "тисяча",
                "тисячі",
                "тисяч"
            });
            if (number > 0)
            {
                UkrainianNumberToWordsConverter.CollectPartsUnderOneThousand(parts, number, gender);
            }
            return(string.Join(" ", parts));
        }
        // Token: 0x060001D9 RID: 473 RVA: 0x0000AA40 File Offset: 0x00008C40
        private static void CollectOrdinalParts(ICollection <string> parts, ref int number, int divisor, GrammaticalGender gender, string prefixedForm, params string[] forms)
        {
            if (number < divisor)
            {
                return;
            }
            int result = number / divisor;

            number %= divisor;
            if (number != 0)
            {
                UkrainianNumberToWordsConverter.CollectPartsUnderOneThousand(parts, result, gender);
                parts.Add(UkrainianNumberToWordsConverter.ChooseOneForGrammaticalNumber(result, forms));
                return;
            }
            if (result == 1)
            {
                parts.Add(prefixedForm);
                return;
            }
            parts.Add(UkrainianNumberToWordsConverter.GetPrefix(result) + prefixedForm);
        }