VirtualBox

Changeset 21409 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Jul 8, 2009 3:36:59 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49785
Message:

IPRT: rename ministring, add iprt:: namespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstUtf8.cpp

    r21404 r21409  
    949949    } while (0)
    950950
    951     ministring empty;
     951    iprt::MiniString empty;
    952952    CHECK( (empty.length() == 0) );
    953953    CHECK( (empty.capacity() == 0) );
    954954
    955     ministring sixbytes("12345");
     955    iprt::MiniString sixbytes("12345");
    956956    CHECK( (sixbytes.length() == 5) );
    957957    CHECK( (sixbytes.capacity() == 6) );
     
    970970    CHECK( (sixbytes.capacity() == 7) );
    971971
    972     ministring morebytes("tobereplaced");
     972    iprt::MiniString morebytes("tobereplaced");
    973973    morebytes = "newstring ";
    974974    morebytes.append(sixbytes);
     
    976976    CHECK_DUMP( (morebytes == "newstring 123456"), morebytes.c_str() );
    977977
    978     ministring third(morebytes);
     978    iprt::MiniString third(morebytes);
    979979    third.reserve(100 * 1024);      // 100 KB
    980980    CHECK_DUMP( (third == "newstring 123456"), morebytes.c_str() );
     
    982982    CHECK( (third.length() == morebytes.length()) );        // must not have changed
    983983
    984     ministring copy1(morebytes);
    985     ministring copy2 = morebytes;
     984    iprt::MiniString copy1(morebytes);
     985    iprt::MiniString copy2 = morebytes;
    986986    CHECK( (copy1 == copy2) );
    987987
     
    992992    CHECK( (copy1.length() == 0) );
    993993
    994     CHECK( (ministring("abc") < ministring("def")) );
    995     CHECK( (ministring("abc") != ministring("def")) );
    996     CHECK_DUMP_I( (ministring("def") > ministring("abc")) );
     994    CHECK( (iprt::MiniString("abc") < iprt::MiniString("def")) );
     995    CHECK( (iprt::MiniString("abc") != iprt::MiniString("def")) );
     996    CHECK_DUMP_I( (iprt::MiniString("def") > iprt::MiniString("abc")) );
    997997
    998998    copy2.setNull();
Note: See TracChangeset for help on using the changeset viewer.

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