string.cpp revision 4f7bc3e9b035984d494d38afa2913fa560e259d6
/* $Id$ */
/** @file
*
* MS COM / XPCOM Abstraction Layer:
* Smart string classes definition
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
namespace com
{
/* static */
/* static */
{
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 */