ByteVector FileStream::readBlock(ulong length)
{
if(!isOpen()) {
- debug("File::readBlock() -- invalid file.");
+ debug("FileStream::readBlock() -- invalid file.");
return ByteVector::null;
}
void FileStream::writeBlock(const ByteVector &data)
{
if(!isOpen()) {
- debug("File::writeBlock() -- invalid file.");
+ debug("FileStream::writeBlock() -- invalid file.");
return;
}
if(readOnly()) {
- debug("File::writeBlock() -- read only file.");
+ debug("FileStream::writeBlock() -- read only file.");
return;
}
void FileStream::insert(const ByteVector &data, ulong start, ulong replace)
{
if(!isOpen()) {
- debug("File::insert() -- invalid file.");
+ debug("FileStream::insert() -- invalid file.");
return;
}
if(readOnly()) {
- debug("File::insert() -- read only file.");
+ debug("FileStream::insert() -- read only file.");
return;
}
void FileStream::removeBlock(ulong start, ulong length)
{
if(!isOpen()) {
- debug("File::removeBlock() -- invalid file.");
+ debug("FileStream::removeBlock() -- invalid file.");
return;
}
void FileStream::seek(long offset, Position p)
{
if(!isOpen()) {
- debug("File::seek() -- invalid file.");
+ debug("FileStream::seek() -- invalid file.");
return;
}
SetFilePointer(d->file, 0, NULL, FILE_BEGIN);
}
if(GetLastError() != NO_ERROR) {
- debug("File::seek() -- Failed to set the file pointer.");
+ debug("FileStream::seek() -- Failed to set the file pointer.");
}
#else
return static_cast<long>(position);
}
else {
- debug("File::tell() -- Failed to get the file pointer.");
+ debug("FileStream::tell() -- Failed to get the file pointer.");
return 0;
}
long FileStream::length()
{
if(!isOpen()) {
- debug("File::length() -- invalid file.");
+ debug("FileStream::length() -- invalid file.");
return 0;
}
return static_cast<ulong>(fileSize);
}
else {
- debug("File::length() -- Failed to get the file size.");
+ debug("FileStream::length() -- Failed to get the file size.");
return 0;
}
SetLastError(NO_ERROR);
SetEndOfFile(d->file);
if(GetLastError() != NO_ERROR) {
- debug("File::truncate() -- Failed to truncate the file.");
+ debug("FileStream::truncate() -- Failed to truncate the file.");
}
seek(currentPos);
st, srcBegin, srcEnd, source, dstBegin, dstEnd, target);
if(result != utf8_utf16_t::ok) {
- debug("String::copyFromUTF8() - Unicode conversion error.");
+ debug("String::UTF16toUTF8() - Unicode conversion error.");
}
#else
&srcBegin, srcEnd, &dstBegin, dstEnd, Unicode::lenientConversion);
if(result != Unicode::conversionOK) {
- debug("String::to8Bit() - Unicode conversion error.");
+ debug("String::UTF16toUTF8() - Unicode conversion error.");
}
#endif
st, srcBegin, srcEnd, source, dstBegin, dstEnd, target);
if(result != utf8_utf16_t::ok) {
- debug("String::copyFromUTF8() - Unicode conversion error.");
+ debug("String::UTF8toUTF16() - Unicode conversion error.");
}
#else
&srcBegin, srcEnd, &dstBegin, dstEnd, Unicode::lenientConversion);
if(result != Unicode::conversionOK) {
- debug("String::copyFromUTF8() - Unicode conversion error.");
+ debug("String::UTF8toUTF16() - Unicode conversion error.");
}
#endif
else if(t == String::UTF8)
copyFromUTF8(s.c_str(), s.length());
else {
- debug("String::String() -- A std::string should not contain UTF16.");
+ debug("String::String() -- std::string should not contain UTF16.");
}
}
copyFromUTF16(s.c_str(), s.length(), t);
}
else {
- debug("String::String() -- A TagLib::wstring should not contain Latin1 or UTF-8.");
+ debug("String::String() -- TagLib::wstring should not contain Latin1 or UTF-8.");
}
}
copyFromUTF16(s, ::wcslen(s), t);
}
else {
- debug("String::String() -- A const wchar_t * should not contain Latin1 or UTF-8.");
+ debug("String::String() -- const wchar_t * should not contain Latin1 or UTF-8.");
}
}
else if(t == String::UTF8)
copyFromUTF8(s, ::strlen(s));
else {
- debug("String::String() -- A const char * should not contain UTF16.");
+ debug("String::String() -- const char * should not contain UTF16.");
}
}
if(t == UTF16 || t == UTF16BE || t == UTF16LE)
copyFromUTF16(&c, 1, t);
else {
- debug("String::String() -- A const wchar_t should not contain Latin1 or UTF-8.");
+ debug("String::String() -- wchar_t should not contain Latin1 or UTF-8.");
}
}
: d(new StringPrivate(1, static_cast<uchar>(c)))
{
if(t != Latin1 && t != UTF8) {
- debug("String::String() -- A char should not contain UTF16.");
+ debug("String::String() -- char should not contain UTF16.");
}
}