src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java
/**
     * This routine is used to determine if a string can be used as an identifier
     * in the C or C++ language. Currently used to determine if enumerator value can 
     * be used as part of an identifier. 
     */
This routine is used to determine if a string can be used as an identifier
in the C or C++ language. Currently used to determine if enumerator value can
be used as part of an identifier.
This routine is used to determine if a string can be used as an identifier in the C or C ++ language . Currently used to determine if enumerator value can be used as part of an identifier .
public static boolean isValidCIdentifier(String id, boolean checkForNumericFirstChar)
    {    
        if (id == null || id.equals(""))
            return false;
        if (checkForNumericFirstChar)
            if (id.charAt(0) >= '0' && id.charAt(0) <= '9')
                return false;
        for(int i=0; i < Array.getLength(c_invalidCChars); i++)
            if (id.indexOf(c_invalidCChars[i]) != -1)
                return false;
        if (id.indexOf(' ') != -1)
            return false;
        return true;
    }
public static boolean isValidCIdentifier ( String id , boolean checkForNumericFirstChar ) { if ( id == null || id . equals ( "" ) ) return false ; if ( checkForNumericFirstChar ) if ( id . charAt ( 0 ) >= '0' && id . charAt ( 0 ) <= '9' ) return false ; for ( int i = 0 ; i < Array . getLength ( c_invalidCChars ) ; i ++ ) if ( id . indexOf ( c_invalidCChars [ i ] ) != - 1 ) return false ; if ( id . indexOf ( ' ' ) != - 1 ) return false ; return true ; }
This routine is used to determine if a string can be used as an identifier
 in the C or C++ language.
This routine is used to determine if a string can be used as an identifier in the C or C ++ language .
// Check for invalid characters // Check for blanks