Changeset 67979 in vbox for trunk/src/VBox/Runtime/common/string/RTUtf16NICmpAscii.cpp
- Timestamp:
- Jul 15, 2017 11:02:00 AM (7 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/RTUtf16NICmpAscii.cpp
r67978 r67979 36 36 37 37 38 RTDECL(int) RTUtf16 ICmpAscii(PCRTUTF16 pwsz1, const char *psz2)38 RTDECL(int) RTUtf16NICmpAscii(PCRTUTF16 pwsz1, const char *psz2, size_t cwcMax) 39 39 { 40 40 for (;;) 41 41 { 42 if (cwcMax == 0) 43 return 0; 44 42 45 RTUTF16 wc1 = *pwsz1++; 43 46 unsigned char uch2 = *psz2++; Assert(uch2 < 0x80); … … 49 52 return wc1 < uch2 ? -1 : 1; 50 53 } 54 51 55 if (!uch2) 52 56 return 0; 57 cwcMax--; 53 58 } 54 59 } 55 RT_EXPORT_SYMBOL(RTUtf16 ICmpAscii);60 RT_EXPORT_SYMBOL(RTUtf16NICmpAscii); 56 61
Note:
See TracChangeset
for help on using the changeset viewer.