Changeset 36527 in vbox for trunk/include/VBox/com
- Timestamp:
- Apr 4, 2011 1:16:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/string.h
r36429 r36527 72 72 * 73 73 * 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. 75 75 * 76 76 * The one advantage of using the SysString* routines is that this makes it … … 117 117 #endif 118 118 119 Bstr(const iprt::MiniString &that)119 Bstr(const RTCString &that) 120 120 { 121 121 copyFrom(that.c_str()); … … 426 426 * String class used universally in Main for UTF-8 strings. 427 427 * 428 * This is based on iprt::MiniString, to which some functionality has been428 * This is based on RTCString, to which some functionality has been 429 429 * moved. Here we keep things that are specific to Main, such as conversions 430 430 * with UTF-16 strings (Bstr). 431 431 * 432 * Like iprt::MiniString, Utf8Str does not differentiate between NULL strings432 * Like RTCString, Utf8Str does not differentiate between NULL strings 433 433 * and empty strings. In other words, Utf8Str("") and Utf8Str(NULL) behave the 434 * same. In both cases, MiniString allocates no memory, reports434 * same. In both cases, RTCString allocates no memory, reports 435 435 * a zero length and zero allocated bytes for both, and returns an empty 436 436 * C string from c_str(). … … 440 440 * from external sources before passing them to Utf8Str or Bstr. 441 441 */ 442 class Utf8Str : public iprt::MiniString442 class Utf8Str : public RTCString 443 443 { 444 444 public: … … 446 446 Utf8Str() {} 447 447 448 Utf8Str(const MiniString &that)449 : MiniString(that)448 Utf8Str(const RTCString &that) 449 : RTCString(that) 450 450 {} 451 451 452 452 Utf8Str(const char *that) 453 : MiniString(that)453 : RTCString(that) 454 454 {} 455 455 … … 472 472 * @param a_va Argument vector containing the arguments 473 473 * specified by the format string. 474 * @sa iprt::MiniString::printfV474 * @sa RTCString::printfV 475 475 */ 476 476 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); 484 484 return *this; 485 485 } … … 487 487 Utf8Str& operator=(const char *that) 488 488 { 489 MiniString::operator=(that);489 RTCString::operator=(that); 490 490 return *this; 491 491 } … … 572 572 573 573 /** 574 * Class with iprt::MiniString::printf as constructor for your convenience.574 * Class with RTCString::printf as constructor for your convenience. 575 575 * 576 576 * Constructing a Utf8Str string object from a format string and a variable
Note:
See TracChangeset
for help on using the changeset viewer.