Old/mp3_InfoManager/field_string_unicode.cpp
/** \brief Copies the supplied unicode string to the field.
 **
 ** Performs similarly as the ASCII Set() method, taking a unicode_t string
 ** as a parameter rather than an ascii string.
 **
 ** \param string The unicode string to set this field to.
 ** \sa Add(const unicode_t*)
 **/
\brief Copies the supplied unicode string to the field.
Performs similarly as the ASCII Set() method, taking a unicode_t string
as a parameter rather than an ascii string.

\param string The unicode string to set this field to.
\ brief Copies the supplied unicode string to the field . Performs similarly as the ASCII Set () method taking a unicode_t string as a parameter rather than an ascii string . \ param string The unicode string to set this field to .
size_t ID3_FieldImpl::Set(const unicode_t* data)
{
  size_t size = 0;
  if (this->GetType() == ID3FTY_TEXTSTRING &&
      this->GetEncoding() == ID3TE_UNICODE && data)
  {
    String text((const char*) data, ucslen(data) * 2);
    size = this->SetText_i(text);
  }
  return size;
}
size_t ID3_FieldImpl :: Set ( const unicode_t * data ) { size_t size = 0 ; if ( this -> GetType ( ) == ID3FTY_TEXTSTRING && this -> GetEncoding ( ) == ID3TE_UNICODE && data ) { String text ( ( const char * ) data , ucslen ( data ) * 2 ) ; size = this -> SetText_i ( text ) ; } return size ; }
\brief Copies the supplied unicode string to the field.
\ brief Copies the supplied unicode string to the field .