28 #include "id3/utils.h"
29 #include "io_helpers.h"
55 String text((
const char*) data, ucslen(data) * 2);
56 size = this->SetText_i(text);
67 String text((
const char*) data, ucslen(data) * 2);
68 size = this->AddText_i(text);
98 buffer !=
NULL && maxLength > 0)
100 size_t size = this->
Size();
101 length = dami::min(maxLength, size);
102 ::memcpy((
void *)buffer, (
void *)_text.data(), length * 2);
103 if (length < maxLength)
127 index < this->GetNumTextItems())
129 String unicode = _text +
'\0' +
'\0';
131 for (
size_t i = 0; i < index; ++i)
133 text += ucslen(text) + 1;
142 size_t total_items = this->GetNumTextItems();
145 buffer !=
NULL && maxLength > 0 && itemNum < total_items)
147 const unicode_t* text = this->GetRawUnicodeTextItem(itemNum);
150 size_t length = dami::min(maxLength, ucslen(text));
151 ::memcpy(buffer, text, length * 2);
152 if (length < maxLength)