Double Quotes in Constraint Expressions

From OPeNDAP Documentation
Revision as of 19:33, 24 February 2009 by Jimg (talk | contribs) (New page: ==DAP 3.2== Double quotes (") can be used to quote any identifier in a Constrain Expression. ==Rationale== Many data sets us identifier names which contain characters other than those ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
⧼opendap2-jumptonavigation⧽

DAP 3.2

Double quotes (") can be used to quote any identifier in a Constrain Expression.

Rationale

Many data sets us identifier names which contain characters other than those that qualify as an identifier in a programming language like C. For example, using an ampersand (&) in a variable name will cause a conflict with the meaning of an ampersand as a prefix AND operator in the CE's selection clause. Enclosing the identifier name in double quotes resolves the ambiguity. The same can be said for other DAP/CE meta-characters like the dot (.) which serves as a separator for the name of a Structure, et c., and its fields.

examples

Implementation Note