24 #include <VCardURIValue.h>
26 #include <VCardValue.h>
28 using namespace VCARD;
35 URIValue::URIValue(
const TQCString & scheme,
const TQCString & schemeSpecificPart)
38 schemeSpecificPart_ (schemeSpecificPart)
43 URIValue::URIValue(
const URIValue & x)
46 schemeSpecificPart_ (x.schemeSpecificPart_)
50 URIValue::URIValue(
const TQCString & s)
56 URIValue::operator = (URIValue & x)
58 if (*
this == x)
return *
this;
61 schemeSpecificPart_ = x.schemeSpecificPart_;
63 Value::operator = (x);
68 URIValue::operator = (
const TQCString & s)
70 Value::operator = (s);
75 URIValue::operator == (URIValue & x)
79 (scheme_ == x.scheme_) &&
80 (schemeSpecificPart_ == x.schemeSpecificPart_));
92 int split = strRep_.find(
':');
96 scheme_ = strRep_.left(split);
97 schemeSpecificPart_ = strRep_.mid(split + 1);
101 URIValue::_assemble()
103 strRep_ = scheme_ +
':' + schemeSpecificPart_;
114 URIValue::schemeSpecificPart()
117 return schemeSpecificPart_;
121 URIValue::setScheme(
const TQCString & s)
128 URIValue::setSchemeSpecificPart(
const TQCString & s)
131 schemeSpecificPart_ = s;