code: public static boolean endsWithIgnoreCase(String s,String w)
      {
          if (w==null)
              return true;
          
          int sl=s.length();
          int wl=w.length();
          
          if (s==null || sl<wl)
              return false;
          
          for (int i=wl;i-->0;)
          {
              char c1=s.charAt(--sl);
              char c2=w.charAt(i);
              if (c1!=c2)
              {
                  if (c1<=127)
                      c1=lowercases[c1];
                  if (c2<=127)
                      c2=lowercases[c2];
                  if (c1!=c2)
                      return false;
              }
          }
          return true;
      }
docs: /* ------------------------------------------------------------