Пример #1
0
DString cadence::operator+(DString m, const DString &str) {
	int s = m.size();
	int s2 = str.size();

	for (int i=0; i<s2; i++) {
		m.m_obj[s+i].set(str.m_obj.get(i), true);
	}

	m.m_obj[Size].set(s+s2);

	return m;
}
Пример #2
0
DString cadence::operator+(DString m, const char *str) {
	int s = m.size();
	int s2 = strlen(str);

	for (int i=0; i<s2; i++) {
		m.m_obj[s+i].set(str[i], true);
	}
	
	m.m_obj[Size].set(s+s2);

	return m;
}
Пример #3
0
DString cadence::operator+(DString m, const OID &o) {
	char buf[200];
	o.toString(buf,200);

	int s = m.size();
	int s2 = strlen(buf);

	for (int i=0; i<s2; i++) {
		m.m_obj[s+i].set(buf[i], true);
	}
	
	m.m_obj[Size].set(s+s2);

	return m;
}
Пример #4
0
pair<Layout::Edge*,bool> View::getEdge(DString id,DString tail,DString head,bool create) {
	assert(tail.size()&&head.size());
	Layout::Node *t = getNode(tail,false).first,
		*h = getNode(head,false).first;
	return getEdge(id,t,h,create);
}