VirtualBox

Changeset 36527 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Apr 4, 2011 1:16:09 PM (14 years ago)
Author:
vboxsync
Message:

iprt::MiniString -> RTCString.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r36429 r36527  
    7272 *
    7373 * The Bstr class hides all this handling behind a std::string-like interface
    74  * and also provides automatic conversions to MiniString and Utf8Str instances.
     74 * and also provides automatic conversions to RTCString and Utf8Str instances.
    7575 *
    7676 * The one advantage of using the SysString* routines is that this makes it
     
    117117#endif
    118118
    119     Bstr(const iprt::MiniString &that)
     119    Bstr(const RTCString &that)
    120120    {
    121121        copyFrom(that.c_str());
     
    426426 * String class used universally in Main for UTF-8 strings.
    427427 *
    428  * This is based on iprt::MiniString, to which some functionality has been
     428 * This is based on RTCString, to which some functionality has been
    429429 * moved.  Here we keep things that are specific to Main, such as conversions
    430430 * with UTF-16 strings (Bstr).
    431431 *
    432  * Like iprt::MiniString, Utf8Str does not differentiate between NULL strings
     432 * Like RTCString, Utf8Str does not differentiate between NULL strings
    433433 * and empty strings.  In other words, Utf8Str("") and Utf8Str(NULL) behave the
    434  * same.  In both cases, MiniString allocates no memory, reports
     434 * same.  In both cases, RTCString allocates no memory, reports
    435435 * a zero length and zero allocated bytes for both, and returns an empty
    436436 * C string from c_str().
     
    440440 *          from external sources before passing them to Utf8Str or Bstr.
    441441 */
    442 class Utf8Str : public iprt::MiniString
     442class Utf8Str : public RTCString
    443443{
    444444public:
     
    446446    Utf8Str() {}
    447447
    448     Utf8Str(const MiniString &that)
    449         : MiniString(that)
     448    Utf8Str(const RTCString &that)
     449        : RTCString(that)
    450450    {}
    451451
    452452    Utf8Str(const char *that)
    453         : MiniString(that)
     453        : RTCString(that)
    454454    {}
    455455
     
    472472     * @param   a_va            Argument vector containing the arguments
    473473     *                          specified by the format string.
    474      * @sa      iprt::MiniString::printfV
     474     * @sa      RTCString::printfV
    475475     */
    476476    Utf8Str(const char *a_pszFormat, va_list a_va)
    477         : MiniString(a_pszFormat, a_va)
    478     {
    479     }
    480 
    481     Utf8Str& operator=(const MiniString &that)
    482     {
    483         MiniString::operator=(that);
     477        : RTCString(a_pszFormat, a_va)
     478    {
     479    }
     480
     481    Utf8Str& operator=(const RTCString &that)
     482    {
     483        RTCString::operator=(that);
    484484        return *this;
    485485    }
     
    487487    Utf8Str& operator=(const char *that)
    488488    {
    489         MiniString::operator=(that);
     489        RTCString::operator=(that);
    490490        return *this;
    491491    }
     
    572572
    573573/**
    574  * Class with iprt::MiniString::printf as constructor for your convenience.
     574 * Class with RTCString::printf as constructor for your convenience.
    575575 *
    576576 * Constructing a Utf8Str string object from a format string and a variable
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette