VirtualBox

Ignore:
Timestamp:
Jan 2, 2018 2:35:34 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120030
Message:

IPRT: Added RTUtf16NCmpAscii.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/RTUtf16NCmpAscii.cpp

    r70424 r70425  
    3535
    3636
    37 RTDECL(int) RTUtf16CmpAscii(PCRTUTF16 pwsz1, const char *psz2)
     37RTDECL(int) RTUtf16NCmpAscii(PCRTUTF16 pwsz1, const char *psz2, size_t cwcMax)
    3838{
    39     for (;;)
     39    while (cwcMax-- > 0)
    4040    {
    4141        RTUTF16         wc1  = *pwsz1++;
     
    4444            return wc1 < uch2 ? -1 : 1;
    4545        if (!uch2)
    46             return 0;
     46            break;
    4747    }
     48    return 0;
    4849}
    49 RT_EXPORT_SYMBOL(RTUtf16ICmpAscii);
     50RT_EXPORT_SYMBOL(RTUtf16NCmpAscii);
    5051
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