Double Quotes in Constraint Expressions: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
(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 ...)
(No difference)

Revision as of 19:33, 24 February 2009

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