VirtualBox

Ignore:
Timestamp:
Jul 15, 2017 11:02:00 AM (7 years ago)
Author:
vboxsync
Message:

Added RTUTf16NICmpAscii.

File:
1 copied

Legend:

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

    r67978 r67979  
    3636
    3737
    38 RTDECL(int) RTUtf16ICmpAscii(PCRTUTF16 pwsz1, const char *psz2)
     38RTDECL(int) RTUtf16NICmpAscii(PCRTUTF16 pwsz1, const char *psz2, size_t cwcMax)
    3939{
    4040    for (;;)
    4141    {
     42        if (cwcMax == 0)
     43            return 0;
     44
    4245        RTUTF16         wc1  = *pwsz1++;
    4346        unsigned char   uch2 = *psz2++; Assert(uch2 < 0x80);
     
    4952                return wc1 < uch2 ? -1 : 1;
    5053        }
     54
    5155        if (!uch2)
    5256            return 0;
     57        cwcMax--;
    5358    }
    5459}
    55 RT_EXPORT_SYMBOL(RTUtf16ICmpAscii);
     60RT_EXPORT_SYMBOL(RTUtf16NICmpAscii);
    5661
Note: See TracChangeset for help on using the changeset viewer.

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