VirtualBox

Changeset 66362 in vbox


Ignore:
Timestamp:
Mar 30, 2017 1:48:18 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114303
Message:

IPRT: Adding RTStrICmpAscii (mirrors RTUtf16ICmpAscii).

File:
1 edited

Legend:

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

    r62931 r66362  
    741741    CHECK_DIFF(RTStrICmp("AbCdEG", "aBcDef"), > ); /* diff performed on the lower case cp. */
    742742
     743
     744    RTTestSub(hTest, "RTStrICmpAscii");
     745    CHECK_DIFF(RTStrICmpAscii(NULL, NULL), == );
     746    CHECK_DIFF(RTStrICmpAscii(NULL, ""), < );
     747    CHECK_DIFF(RTStrICmpAscii("", NULL), > );
     748    CHECK_DIFF(RTStrICmpAscii("", ""), == );
     749    CHECK_DIFF(RTStrICmpAscii("abcdef", "abcdef"), == );
     750    CHECK_DIFF(RTStrICmpAscii("abcdef", "abcde"), > );
     751    CHECK_DIFF(RTStrICmpAscii("abcde", "abcdef"), < );
     752    CHECK_DIFF(RTStrICmpAscii("abcdeg", "abcdef"), > );
     753    CHECK_DIFF(RTStrICmpAscii("abcdef", "abcdeg"), < );
     754
     755    CHECK_DIFF(RTStrICmpAscii("abcdeF", "abcdef"), ==);
     756    CHECK_DIFF(RTStrICmpAscii("abcdef", "abcdeF"), ==);
     757    CHECK_DIFF(RTStrICmpAscii("ABCDEF", "abcdef"), ==);
     758    CHECK_DIFF(RTStrICmpAscii("abcdef", "ABCDEF"), ==);
     759    CHECK_DIFF(RTStrICmpAscii("AbCdEf", "aBcDeF"), ==);
     760    CHECK_DIFF(RTStrICmpAscii("AbCdEg", "aBcDeF"), > );
     761    CHECK_DIFF(RTStrICmpAscii("AbCdEG", "aBcDef"), > ); /* diff performed on the lower case cp. */
    743762
    744763
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