src/org/jnetpcap/util/resolver/IEEEOuiPrefixResolver.java
private String transform(String str,
			String more,
			final String singular,
			final String abbr) {

		final String plural = singular + "s";

		str = str.replace(plural.toUpperCase(), abbr);
		str = str.replace(plural.toLowerCase(), abbr);
		str = str.replace(plural, abbr);

		str = str.replace(singular.toUpperCase(), abbr);
		str = str.replace(singular.toLowerCase(), abbr);
		str = str.replace(singular, abbr);

		/*
		 * If after transformation we end up just the short abbreviation, we need to
		 * add more to the string if we can from company parts.
		 */
		if (str.equals(abbr)) {
			if (more != null) {
				str += more;
			}
		}

		return str;
	}
/**
	 * Transform any reference to specific terms with abbrieviations. The method
	 * also makes the sigular form plural and checks both lower and upper case
	 * versions.
	 * 
	 * @param str
	 *          string to be transformed
	 * @param more
	 *          the more
	 * @param singular
	 *          term to look for in sigular form
	 * @param abbr
	 *          abbreviation to substitute in place
	 * @return new string
	 */
Transform any reference to specific terms with abbrieviations. The method
also makes the sigular form plural and checks both lower and upper case
versions.


Transform any reference to specific terms with abbrieviations . The method also makes the sigular form plural and checks both lower and upper case versions .
private String transform(String str,
			String more,
			final String singular,
			final String abbr) {
		final String plural = singular + "s";
		str = str.replace(plural.toUpperCase(), abbr);
		str = str.replace(plural.toLowerCase(), abbr);
		str = str.replace(plural, abbr);
		str = str.replace(singular.toUpperCase(), abbr);
		str = str.replace(singular.toLowerCase(), abbr);
		str = str.replace(singular, abbr);
		/*
		 * If after transformation we end up just the short abbreviation, we need to
		 * add more to the string if we can from company parts.
		 */
		if (str.equals(abbr)) {
			if (more != null) {
				str += more;
			}
		}
		return str;
	}
private String transform ( String str , String more , final String singular , final String abbr ) { final String plural = singular + "s" ; str = str . replace ( plural . toUpperCase ( ) , abbr ) ; str = str . replace ( plural . toLowerCase ( ) , abbr ) ; str = str . replace ( plural , abbr ) ; str = str . replace ( singular . toUpperCase ( ) , abbr ) ; str = str . replace ( singular . toLowerCase ( ) , abbr ) ; str = str . replace ( singular , abbr ) ; /*
		 * If after transformation we end up just the short abbreviation, we need to
		 * add more to the string if we can from company parts.
		 */ if ( str . equals ( abbr ) ) { if ( more != null ) { str += more ; } } return str ; }
Transform any reference to specific terms with abbrieviations.
Transform any reference to specific terms with abbrieviations .