code: public static boolean osSensitiveEndsWith( String str, String suffix )
      {
          if ( OS_CASE_SENSITIVE )
          {
              return str.endsWith( suffix );
          }
          else
          {
              int strLen = str.length();
              int suffixLen = suffix.length();
              
              if ( strLen < suffixLen )
              {
                  return false;
              }
              
              return ( str.substring( strLen - suffixLen ).equalsIgnoreCase( suffix ) );
          }
      }
docs: Tell whether a string ends with a particular suffix, with case sensitivity determined by the operating system.
  
  @param str the String to test.
  @param suffix the suffix to look for.
  @return <code>true</code> when:
  <ul>
  <li><code>str</code> ends with <code>suffix</code>, or,</li>
  <li>the operating system is not case-sensitive with regard to file names, and <code>str</code> ends with
  <code>suffix</code>, ignoring case.</li>
  </ul>
  @see #isOSCaseSensitive()