string.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $Id$ */
/** @file
*
* MS COM / XPCOM Abstraction Layer:
* UTF-8 and UTF-16 string classes
*/
/*
* Copyright (C) 2006-2007 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
namespace com
{
// BSTR representing a null wide char with 32 bits of length prefix (0);
// this will work on Windows as well as other platforms where BSTR does
// not use length prefixes
/* static */
/* static */
#if defined (VBOX_WITH_XPCOM)
{
if (!*pstr)
}
#endif
{
if (length())
::RTStrToLower(m_psz);
return *this;
}
{
if (length())
::RTStrToUpper(m_psz);
return *this;
}
void Utf8Str::stripTrailingSlash()
{
jolt();
}
void Utf8Str::stripFilename()
{
jolt();
}
{
jolt();
}
struct FormatData
{
char *cache;
};
{
if (!format)
return;
// assume an extra byte for a terminating zero
NOREF(n);
// finalize formatting
}
// static
{
{
// append to cache (always assume an extra byte for a terminating zero)
{
}
}
return cbChars;
}
} /* namespace com */