示例#1
0
        // Token: 0x06000203 RID: 515 RVA: 0x0000C1C0 File Offset: 0x0000A3C0
        public string Convert()
        {
            if (this._fullNumber == 0)
            {
                return("zero");
            }
            if (this._fullNumber <= 9)
            {
                return(ItalianOrdinalNumberCruncher._unitsUnder10NumberToText[this._fullNumber] + this._genderSuffix);
            }
            string words = new ItalianCardinalNumberCruncher(this._fullNumber, this._gender).Convert();

            if (this._fullNumber % 100 == 10)
            {
                words = words.Remove(words.Length - ItalianOrdinalNumberCruncher._lengthOf10AsCardinal) + "decim" + this._genderSuffix;
            }
            else
            {
                words = words.Remove(words.Length - 1);
                int units = this._fullNumber % 10;
                if (units == 3)
                {
                    words += "e";
                }
                else if (units == 6)
                {
                    words += "i";
                }
                int lowestThreeDigits = this._fullNumber % 1000;
                int lowestSixDigits   = this._fullNumber % 1000000;
                if (this._fullNumber % 1000000000 == 0)
                {
                    words = words.Replace(" miliard", "miliard");
                    if (this._fullNumber == 1000000000)
                    {
                        words = words.Replace("un", string.Empty);
                    }
                }
                else if (lowestSixDigits == 0)
                {
                    words = words.Replace(" milion", "milion");
                    if (this._fullNumber == 1000000)
                    {
                        words = words.Replace("un", string.Empty);
                    }
                }
                else if (lowestThreeDigits == 0 && this._fullNumber > 1000)
                {
                    words += "l";
                }
                words = words + "esim" + this._genderSuffix;
            }
            return(words);
        }