pos =
str.find(
'|');
45 stringssize =
str.substr(0,pos);
48pos = pos + 1 +
size;
49 size_tpos1 =
str.find(
'|', pos);
50ssize =
str.substr(pos, pos1-pos);
53 stringfname =
str.substr(pos1,
size);
54pos =
str.find(
'|', pos1);
55ssize =
str.substr(pos1, pos-pos1);
58ssize =
str.substr(pos+1+
size);
104 stringvar = cont.
Get(*it);
115 if(vars.
empty()) {
124 strings.push_back( it->first +
'='+ it->second);
125(
env.get()[index]) =
strings[index].c_str();
map< string, string > TVars
CNcbiIstream & ReadEnvironment(CNcbiIstream &is, CNcbiEnvironment &cont)
Write an environment from a stream.
CNcbiIstream & ReadCgiCookies(CNcbiIstream &is, CCgiCookies &cont)
Read cgi cookeis from a stream.
CNcbiOstream & WriteEnvironment(CNcbiOstream &os, const CNcbiEnvironment &cont)
Write an environment to a stream.
CNcbiOstream & WriteCgiCookies(CNcbiOstream &os, const CCgiCookies &cont)
Write cgi cookeis to a stream.
CNcbiIstream & ReadMap(CNcbiIstream &is, TMap &cont)
Read a map from a stream.
CNcbiOstream & WriteMap(CNcbiOstream &os, const TMap &cont)
Write a map to a stream.
string ReadStringFromStream(CNcbiIstream &is)
Read a string from a stream.
static TElem FromString(const string &str)
static string ToString(const TElem &elem)
void flush(bool write_empty_data=false)
static const struct name_t names[]
static const char * str(char *buf, int n)
static const char *const strings[]
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
const string & GetValue() const
Get the value as a string, (necessarily) prefetching it all if applicable; the result remains availab...
const string & GetContentType() const
May be available for some fields of POSTed forms.
void Clear(void)
Remove all stored cookies.
CNcbiOstream & Write(CNcbiOstream &os, CCgiCookie::EWriteMethod wmethod=CCgiCookie::eHTTPResponse) const
Printout all cookies into the stream "os".
CCgiCookie * Add(const string &name, const string &value, const string &domain=kEmptyStr, const string &path=kEmptyStr, EOnBadCookie on_bad_cookie=eOnBadCookie_SkipAndError)
All Add() functions: if the added cookie has the same {name, domain, path} as an already existing one...
const string & GetFilename() const
Only available for certain fields of POSTed forms.
unsigned int GetPosition() const
CGI parameter number â automatic image name parameter is #0, explicit parameters start at #1.
const string & Get(const string &name, bool *found=NULL) const
Get environment value by name.
void Reset(const char *const *envp=0)
Reset environment.
void Enumerate(list< string > &names, const string &prefix=kEmptyStr) const
Find all variable names starting with an optional prefix.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
static string UIntToString(unsigned int value, TNumToStringFlags flags=0, int base=10)
Convert UInt to string.
static unsigned int StringToUInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to unsigned int.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
Defines unified interface to application:
Miscellaneous common-use basic types and functionality.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4