graveyard/tools/org/apache/axis/tools/common/InputCppSourceCode.java
/**
	 * Find out whether we are defining an enum or union which will contain
	 * braces. Ignore function prototypes that return an enum or union.
	 * enum colour { red, blue };
	 * enum colour func();
	 * enum colour func() { return colour.red; }
	 */
Find out whether we are defining an enum or union which will contain
braces. Ignore function prototypes that return an enum or union.
Find out whether we are defining an enum or union which will contain braces . Ignore function prototypes that return an enum or union .
private static boolean isEnumOrUnion(String s) throws ParsingException {
		if ((!Utils.startsWith(s, "enum") && !Utils.startsWith(s, "union"))
			|| isMethod(s))
			return false;
		int brace = Utils.indexOf(s, '{');
		int semicolon = Utils.indexOf(s, ';');
		return -1 != brace && (-1 == semicolon || brace < semicolon);
	}
private static boolean isEnumOrUnion ( String s ) throws ParsingException { if ( ( ! Utils . startsWith ( s , "enum" ) && ! Utils . startsWith ( s , "union" ) ) || isMethod ( s ) ) return false ; int brace = Utils . indexOf ( s , '{' ) ; int semicolon = Utils . indexOf ( s , ';' ) ; return - 1 != brace && ( - 1 == semicolon || brace < semicolon ) ; }
Find out whether we are defining an enum or union which will contain
 braces.
Find out whether we are defining an enum or union which will contain braces .