#include <ctype.h>
#include <iomanip>
#include <string>
#include <sstream>
#include "GNURegex.h"
#include "Error.h"
#include "InternalErr.h"
#include "debug.h"
Include dependency graph for escaping.cc:
Go to the source code of this file.
Functions | |
string | esc2underscore (string s) |
string | escattr (string s) |
string | hexstring (unsigned char val) |
string | id2www (string in, const string &allowable) |
string | id2www_ce (string in, const string &allowable) |
string | id2xml (string in, const string ¬_allowed) |
string | munge_error_message (string msg) |
string | octstring (unsigned char val) |
string | unescattr (string s) |
string | unhexstring (string s) |
string | unoctstring (string s) |
string | www2id (const string &in, const string &escape, const string &except) |
string | xml2id (string in) |
|
Return a string that has all the
Definition at line 293 of file escaping.cc. |
|
Escape non-printable characters and quotes from an HDF attribute.
Definition at line 307 of file escaping.cc. References octstring(). Referenced by Str::print_val(). |
Here is the call graph for this function:
|
Definition at line 78 of file escaping.cc. Referenced by id2www(). |
|
Replace characters that are not allowed in DAP2 identifiers. -In the DAP itself, id2www() is called in:
-In the client code:
Definition at line 150 of file escaping.cc. References hexstring(). Referenced by id2www_ce(), AttrTable::print(), DDS::print(), DDS::print_constrained(), Array::print_decl(), BaseType::print_decl(), Constructor::print_decl(), Grid::print_decl(), and AttrTable::simple_print(). |
Here is the call graph for this function:
|
Replace characters that are not allowed in WWW URLs using rules specific to Constraint Expressions. This has canged over time and now the only difference is that '*' is escaped by this function while it is not escaped by id2www().
Definition at line 173 of file escaping.cc. References id2www(). Referenced by Connect::request_das(), Connect::request_data(), Connect::request_dds(), Connect::request_ddx(), Connect::request_protocol(), and Connect::request_version(). |
Here is the call graph for this function:
|
Replace characters that are not allowed in XML
Definition at line 243 of file escaping.cc. Referenced by AttrTable::print_xml(), BaseType::print_xml(), Constructor::print_xml(), DDS::print_xml(), Grid::print_xml(), and Array::print_xml_core(). |
|
Definition at line 388 of file escaping.cc. |
|
Definition at line 100 of file escaping.cc. Referenced by escattr(). |
|
Un-escape special characters, quotes and backslashes from an HDF attribute. Note: A regex to match one \ must be defined as: Regex foo = "\\\\"; because both C++ strings and GNU's Regex also employ \ as an escape character!
Definition at line 346 of file escaping.cc. References DBG, and unoctstring(). |
Here is the call graph for this function:
|
Definition at line 88 of file escaping.cc. Referenced by www2id(). |
|
Definition at line 110 of file escaping.cc. References DBG. Referenced by unescattr(). |
|
Given a string that contains WWW escape sequences, translate those escape sequences back into ASCII characters. Return the modified string. -Places in the dap code where www2id() is called:
-In the server code:
Definition at line 207 of file escaping.cc. References unhexstring(). Referenced by AttrTable::add_container_alias(), AttrTable::add_value_alias(), AttrTable::append_attr(), AttrTable::append_container(), Array::append_dim(), DAS::DAS(), AttrTable::del_attr(), DODSFilter::initialize(), DODSFilter::set_ce(), DODSFilter::set_dataset_name(), AttrTable::set_name(), BaseType::set_name(), DDS::var(), Grid::var(), Sequence::var(), Structure::var(), and Vector::var(). |
Here is the call graph for this function:
|
Given a string that contains XML escape sequences (i.e., entities), translate those back into ASCII characters. Return the modified string.
Definition at line 261 of file escaping.cc. |