Fan.Sys.FanInt.lower C# (CSharp) Méthode

lower() public static méthode

public static lower ( long self ) : long
self long
Résultat long
        public static long lower(long self)
        {
            long val = self;
              if ('A' <= val && val <= 'Z')
            return ((int)val) | 0x20;
              else
            return self;
        }

Usage Example

Exemple #1
0
        private Month parseMon()
        {
            StringBuilder s = new StringBuilder();

            while (pos < str.Length)
            {
                int ch = str[pos];
                if ('a' <= ch && ch <= 'z')
                {
                    s.Append((char)ch); pos++; continue;
                }
                if ('A' <= ch && ch <= 'Z')
                {
                    s.Append((char)FanInt.lower(ch)); pos++; continue;
                }
                break;
            }
            Month m = locale().monthByName(s.ToString());

            if (m == null)
            {
                throw new Exception();
            }
            return(m);
        }
All Usage Examples Of Fan.Sys.FanInt::lower