本文整理汇总了C++中SjByteVector::appendString方法的典型用法代码示例。如果您正苦于以下问题:C++ SjByteVector::appendString方法的具体用法?C++ SjByteVector::appendString怎么用?C++ SjByteVector::appendString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SjByteVector
的用法示例。
在下文中一共展示了SjByteVector::appendString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
SjByteVector ID3v2_AttachedPictureFrame::renderFields() const
{
SjByteVector data;
data.append((unsigned char)(m_textEncoding));
data.appendString(m_mimeType, SJ_LATIN1);
data.append(textDelimiter(SJ_LATIN1));
data.append((unsigned char)(m_type));
data.appendString(m_description, m_textEncoding);
data.append(textDelimiter(m_textEncoding));
data.append(m_data);
return data;
}
示例2: frameList
void ID3v2_Tag::setTextFrame(const wxString &id, const wxString &value)
{
if(value.IsEmpty()) {
removeFrames(id);
return;
}
//if(!d->frameListMap[id].isEmpty())
// d->frameListMap[id].front()->setText(value);
ID3v2_FrameList* it = frameList(id);
if( it )
{
ID3v2_FrameList::Node* l = it->GetFirst();
if( l )
{
l->GetData()->setText(value);
}
}
else
{
const SjStringType encoding = m_factory->defaultTextEncoding();
SjByteVector idBv;
idBv.appendString(id, SJ_LATIN1);
ID3v2_TextIdentificationFrame *f = new ID3v2_TextIdentificationFrame(idBv, encoding);
addFrame(f);
f->setText(value);
}
}
示例3: render
SjByteVector APE_Item::render() const
{
SjByteVector data;
SjUint flags = ((m_readOnly) ? 1 : 0) | (m_type << 1);
SjByteVector value;
if(isEmpty())
return data;
if(m_type != APE_ItemBinary)
{
int i, iCount = m_stringList.GetCount();
if( iCount>0 )
{
value.appendString(m_stringList.Item(0), SJ_UTF8);
for( i = 1; i < iCount; i++ )
{
value.append((unsigned char)'\0');
value.appendString(m_stringList.Item(i), SJ_UTF8);
}
}
// there should be no need to set back m_binary
}
else
{
value.append(m_binary);
}
data.append(SjByteVector::fromUint(value.size(), false));
data.append(SjByteVector::fromUint(flags, false));
data.appendString(m_key, SJ_UTF8);
data.append(SjByteVector((unsigned char)'\0'));
data.append(value);
return data;
}