Changeset 76096 in vbox for trunk/src/VBox/Runtime/common/string/RTUtf16Chr.cpp
- Timestamp:
- Dec 10, 2018 2:40:04 AM (6 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/RTUtf16Chr.cpp
r76093 r76096 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - RTUtf16 End.3 * IPRT - RTUtf16Chr. 4 4 */ 5 5 … … 33 33 34 34 35 RTDECL(P CRTUTF16) RTUtf16End(PCRTUTF16 pwszString, size_t cwcMax)35 RTDECL(PRTUTF16) RTUtf16Chr(PCRTUTF16 pwszString, RTUTF16 wc) 36 36 { 37 while (cwcMax-- > 0)37 for (;;) 38 38 { 39 if (!*pwszString) 40 return pwszString; 41 pwszString++; 39 RTUTF16 wcSrc = *pwszString; 40 if (wcSrc != wc) 41 { 42 if (wcSrc != '\0') 43 pwszString++; 44 else 45 return NULL; 46 } 47 else 48 return (PRTUTF16)pwszString; 42 49 } 43 return NULL;44 50 } 45 RT_EXPORT_SYMBOL(RTUtf16 End);51 RT_EXPORT_SYMBOL(RTUtf16Chr); 46 52
Note:
See TracChangeset
for help on using the changeset viewer.