38static char rcsid[] not_used = {
"$Id$"};
42#include <libdap/escaping.h>
48 _names.push_back(name_equiv(raw_equiv));
58 name_equiv equiv(raw_equiv);
59 _names.push_back(equiv);
65 return esc2underscore(name);
73 for (NEItor p = _names.begin(); p != _names.end(); ++p)
74 if (name == p->from) {
75 if (!canonical_names) {
79 static BESRegex ident(
"[A-Za-z_][A-Za-z0-9_]*", 1);
81 if (ident.
match(tmp_n.c_str(), tmp_n.size()))
97 _names.erase(_names.begin(), _names.end());
Regular expression matching.
int match(const char *s, int len, int pos=0) const
Does the pattern match.
string lookup(string name, const bool canonical_names=false)
void add(char *raw_equiv)