Fan.Sys.FanStr.lower C# (CSharp) Method

lower() public static method

public static lower ( string self ) : string
self string
return string
        public static string lower(string self)
        {
            StringBuilder s = new StringBuilder(self.Length);
              for (int i=0; i<self.Length; i++)
              {
            int ch = self[i];
            if ('A' <= ch && ch <= 'Z') ch |= 0x20;
            s.Append((char)ch);
              }
              return s.ToString();
        }

Usage Example

Example #1
0
 /** Get a month by lowercase abbr or full name for this locale */
 internal Month monthByName(string name)
 {
     if (m_monthsByName == null)
     {
         Hashtable map = new Hashtable();
         for (int i = 0; i < Month.array.Length; ++i)
         {
             Month m = Month.array[i];
             map[FanStr.lower(m.abbr(this))] = m;
             map[FanStr.lower(m.full(this))] = m;
         }
         m_monthsByName = map;
     }
     return((Month)m_monthsByName[name]);
 }
All Usage Examples Of Fan.Sys.FanStr::lower