opendap/src/main/java/opendap/util/dasTools.java
public static boolean nameIsGlobal(String name) {

        String lcName = name.toLowerCase();
        boolean global = false;

        if (lcName.indexOf("global") >= 0)
            global = true;

        if (lcName.indexOf("dods") >= 0)
            global = true;

        //System.out.println("nameIsGlobal(): "+global);

        return (global);
    }
public static boolean nameIsGlobal(String name) {

        String lcName = name.toLowerCase();
        boolean global = false;

        if (lcName.indexOf("global") >= 0)
            global = true;

        if (lcName.indexOf("dods") >= 0)
            global = true;

        //System.out.println("nameIsGlobal(): "+global);

        return (global);
    }
public static boolean nameIsGlobal ( String name ) { String lcName = name . toLowerCase ( ) ; boolean global = false ; if ( lcName . indexOf ( "global" ) >= 0 ) global = true ; if ( lcName . indexOf ( "dods" ) >= 0 ) global = true ; //System.out.println("nameIsGlobal(): "+global);
 return ( global ) ; }
/* C++ implementation
static bool
name_is_global(string &name)
{
static Regex global("\\(.*global.*\\)\\|\\(.*opendap.*\\)", 1);
downcase(name);
return global.match(name.c_str(), name.length()) != -1;
}
/ * C ++ implementation static bool name_is_global ( string &name ) { static Regex global ( \\ ( . * global . * \\ ) \\ | \\ ( . * opendap . * \\ ) 1 ) ; downcase ( name ) ; return global . match ( name . c_str () name . length () ) ! = - 1 ; }