History log of /vbox/src/VBox/Runtime/testcase/tstIprtMiniString.cpp
Revision Date Author Comments Expand
fca8f450b138f2965fdd2b8817e78837968f3103 51796 02-Jul-2014 vboxsync

Added two missing roundtrip case folding tests.

f9bca9145a0dca17ca3355cfd8d416d1241637c0 51795 02-Jul-2014 vboxsync

UTF-8 case folding hacks to deal with U+0130, U+0131, U+017f and U+01fbe since these doesn't have any roundtrip compatible mappings nor have case folds into codepoins with the same UTF-8 length. They map to other characters in other blocks.

c2a214aca9750bcecd060bbeb5e02214bf9b4ac7 39903 27-Jan-2012 vboxsync

IPRT/RTCString: fix find method, add testcase

5ff36a93b0416312ccf2ed0f05043fdd030d2100 36561 05-Apr-2011 vboxsync

RTCString::join: Optimization.

e4cbbb034d1f2226fea95d81d1918ca2cf139e5c 36544 04-Apr-2011 vboxsync

iprt-cpp: fix RTCString::join when the list contains just one item

64fee3f73de7a63db0b27a93be05cd635a149d14 36532 04-Apr-2011 vboxsync

IPRT-C++: iprt::list -> RTCList; iprt::mtlist -> RTCMTList

6c6531128b39093daeac902a8705c0bdf15b31cc 36527 04-Apr-2011 vboxsync

iprt::MiniString -> RTCString.

/vbox/include/VBox/com/string.h /vbox/include/iprt/cpp/exception.h /vbox/include/iprt/cpp/list.h /vbox/include/iprt/cpp/ministring.h /vbox/include/iprt/cpp/xml.h /vbox/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp /vbox/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp /vbox/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp /vbox/src/VBox/Main/glue/string.cpp /vbox/src/VBox/Main/include/ExtPackUtil.h /vbox/src/VBox/Main/include/HostHardwareLinux.h /vbox/src/VBox/Main/include/Performance.h /vbox/src/VBox/Main/include/ovfreader.h /vbox/src/VBox/Main/src-all/ExtPackManagerImpl.cpp /vbox/src/VBox/Main/src-all/ExtPackUtil.cpp /vbox/src/VBox/Main/src-helper-apps/VBoxExtPackHelperApp.cpp /vbox/src/VBox/Main/src-server/Performance.cpp /vbox/src/VBox/Main/xml/Settings.cpp /vbox/src/VBox/Main/xml/ovfreader.cpp /vbox/src/VBox/Runtime/common/string/ministring.cpp /vbox/src/VBox/Runtime/r3/xml.cpp tstIprtList.cpp tstIprtMiniString.cpp
7f0bf7fc186a9b0de66702f6d1e44fcad695b73d 36501 01-Apr-2011 vboxsync

IPRT: add join/split and + operators to the string class

8880495bbb1df290f0806bf43298e658cfcb547c 35568 14-Jan-2011 vboxsync

IPRT: another ministring testcase

e23f032178340da346f06df66a051517dfb416b2 35567 14-Jan-2011 vboxsync

IPRT: fix rare crash in MiniString::substr(); rename substr() to substrCP() and add a substr that operates on bytes, not codepoints; more to come

5aa387de314d2023440cf16f117ce71072ab0a49 33862 08-Nov-2010 vboxsync

iprt/cpp/ministring.h: Changed the substring constructors to match std::string. As I feared, this caused some minor issues with the format+va_list constructor, fortunately it's only when passing a_cchSrc=0. While at it, I've added the one missing std::string constructor, the repeat character constructor.

8d9b740ca730fa821b892864cfa398ec0577b42b 33819 06-Nov-2010 vboxsync

tstIprtMiniString.cpp: NULL construction and assignment tests.

427a6e001f3fee7f81f96af114313a0a5ba73bef 33615 29-Oct-2010 vboxsync

now it's right. added tests to prove it.

e39f7584900a350071fb8aa0997caa99cf2cc5ee 33610 29-Oct-2010 vboxsync

iprt::MiniString: Fixed bug in compare("") and equals("") caused by m_psz=NULL when m_cch=0 and RTStr[I]Cmp regarding NULL and "" as different things. Added format+va_list constructor.

2c6b53161df23f161a60f267109f53ec6d4807f3 33605 29-Oct-2010 vboxsync

iprt/cpp/ministring: Added printf and printfV methods.

da95d7e90deb739a4313283fc4b2e23d8f9ce8d6 33563 28-Oct-2010 vboxsync

iprt:ministring: Added the java-style equals() and equalsIgnoreCase() as equals() can optimize the comparison by first checking if the length is the same (compare() cannot as it needs to determin the ordering). Added appendCodePoint() for UTF-8. Fixed the incorrect assumption in toUpper and toLower that the string length remained unchanged - the string might shrink as the folded code points may have a shorter encoding. Added testcase that verifies that a code point will not grow during folding and that have a stable encoding length after it has been changed in a folding.