humble-video-noarch/src/main/java/io/humble/ferry/JNIEnv.java
public static OSFamily getOSFamilyFromGNUString(String gnuString)
  {
    final String nativeOs = (gnuString != null ? gnuString.toLowerCase() : "");
    final OSFamily retval;
    if (nativeOs.startsWith("mingw") || nativeOs.startsWith("cygwin"))
      retval = OSFamily.WINDOWS;
    else if (nativeOs.startsWith("darwin"))
      retval = OSFamily.MAC;
    else if (nativeOs.startsWith("linux"))
      retval = OSFamily.LINUX;
    else
      retval = OSFamily.UNKNOWN;
    return retval;
  }
public static OSFamily getOSFamilyFromGNUString(String gnuString)
  {
    final String nativeOs = (gnuString != null ? gnuString.toLowerCase() : "");
    final OSFamily retval;
    if (nativeOs.startsWith("mingw") || nativeOs.startsWith("cygwin"))
      retval = OSFamily.WINDOWS;
    else if (nativeOs.startsWith("darwin"))
      retval = OSFamily.MAC;
    else if (nativeOs.startsWith("linux"))
      retval = OSFamily.LINUX;
    else
      retval = OSFamily.UNKNOWN;
    return retval;
  }
public static OSFamily getOSFamilyFromGNUString ( String gnuString ) { final String nativeOs = ( gnuString != null ? gnuString . toLowerCase ( ) : "" ) ; final OSFamily retval ; if ( nativeOs . startsWith ( "mingw" ) || nativeOs . startsWith ( "cygwin" ) ) retval = OSFamily . WINDOWS ; else if ( nativeOs . startsWith ( "darwin" ) ) retval = OSFamily . MAC ; else if ( nativeOs . startsWith ( "linux" ) ) retval = OSFamily . LINUX ; else retval = OSFamily . UNKNOWN ; return retval ; }
Return an OS Family from parsing a GNU autoconf triple.

For example "x86_64-w64-mingw32" will return {@link JNIEnv.OSFamily#WINDOWS}
and "ppc-apple-darwin" will return {@link JNIEnv.OSFamily#MAC}.

@param gnuString the GNU string
@return the OSFamily
Return an OS Family from parsing a GNU autoconf triple .