libdap++ Updated for version 3.8.2
|
#include "config.h"
#include <cassert>
#include <cstring>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <stdexcept>
#include "BaseType.h"
#include "Str.h"
#include "Url.h"
#include "Sequence.h"
#include "Error.h"
#include "parser.h"
#include "util.h"
#include "GNURegex.h"
#include "debug.h"
Go to the source code of this file.
Namespaces | |||||||
namespace | libdap | ||||||
Functions | |||||||
string | libdap::dap_version () | ||||||
void | libdap::downcase (string &s) | ||||||
string | libdap::file_to_string (FILE *fp) | ||||||
bool | libdap::is_quoted (const string &s) | ||||||
const char * | libdap::libdap_name () | ||||||
const char * | libdap::libdap_root () | ||||||
const char * | libdap::libdap_version () | ||||||
string | libdap::path_to_filename (string path) | ||||||
string | libdap::prune_spaces (const string &name) | ||||||
string | libdap::remove_quotes (const string &s) | ||||||
string | libdap::systime () | ||||||
bool | libdap::unique_names (vector< BaseType * > l, const string &var_name, const string &type_name, string &msg) | ||||||
Integer to string conversion functions | |||||||
Fast, safe conversions from long to a character representation which gets appended to a string. This method will take a long value 'val' and it will recursively divide it by 'base' in order to "extract" one by one the digits which compose it; these digits will be appended to the string
| |||||||
void | libdap::append_long_to_string (long val, int base, string &str_val) | ||||||
string | libdap::long_to_string (long val, int base) | ||||||
Double to string conversion functions | |||||||
Conversions from double to a character representation which gets appended to a string. This function depends on the standard routine sprintf to convert a double to a textual representation which gets appended to the string 'str'.
| |||||||
void | libdap::append_double_to_string (const double &num, string &str) | ||||||
string | libdap::double_to_string (const double &num) | ||||||
Security functions | |||||||
bool | libdap::size_ok (unsigned int sz, unsigned int nelem) | ||||||
sanitize the size of an array. Test for integer overflow when dynamically allocating an array. | |||||||
bool | libdap::pathname_ok (const string &path, bool strict) | ||||||
Does the string name a potentailly valid pathname? Test the given pathname to verfiy that it is a valid name. We define this as: Contains only printable characters; and Is less then 256 characters. If strict is true, test that the pathname consists of only letters, digits, and underscore, dash and dot characters instead of the more general case where a pathname can be composed of any printable characters. |