#include <vector>
#include <map>
#include <deque>
#include <iostream>
#include "types.h"
#include "dotgraph.h"
Go to the source code of this file.
◆ DotNodeRefVector
◆ EdgeInfoVector
◆ escapeTooltip()
Definition at line 99 of file dotnode.cpp.
100{
101 if (tooltip.
isEmpty())
return tooltip;
103 const char *p=tooltip.
data();
104 char c = 0;
105 while ((c=*p++))
106 {
107 switch(c)
108 {
109 case '"': result+="\\\""; break;
110 case '\\': result+="\\\\"; break;
111 default: result+=c; break;
112 }
113 }
114 return result;
115}
This is an alternative implementation of QCString.
bool isEmpty() const
Returns TRUE iff the string is empty.
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
References QCString::data(), and QCString::isEmpty().
Referenced by common_attributes(), and DotNode::writeBox().