24 HTTPEntityTag(
const string &text) {
28 if (text.length() >= 2) {
29 string sub = text.substr(0, 2);
30 if (sub ==
"W/" || sub ==
"w/") {
38 if (p < text.length() && text[p] ==
'"') {
42 while (p < text.length() && !(quoted && text[p] ==
'"')) {
43 if (text[p] ==
'\\') {
57 std::ostringstream result;
63 for (string::const_iterator ti = _tag.begin(); ti != _tag.end(); ++ti) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::string get_string() const
Returns the entity tag formatted for sending to an HTTP server (the tag is quoted,...