Lines Matching defs:pwszString
116 RTDECL(void) RTUtf16Free(PRTUTF16 pwszString)
118 if (pwszString)
119 RTMemTmpFree(pwszString);
124 RTDECL(PRTUTF16) RTUtf16DupTag(PCRTUTF16 pwszString, const char *pszTag)
126 Assert(pwszString);
127 size_t cb = (RTUtf16Len(pwszString) + 1) * sizeof(RTUTF16);
130 memcpy(pwsz, pwszString, cb);
136 RTDECL(int) RTUtf16DupExTag(PRTUTF16 *ppwszString, PCRTUTF16 pwszString, size_t cwcExtra, const char *pszTag)
138 Assert(pwszString);
139 size_t cb = (RTUtf16Len(pwszString) + 1) * sizeof(RTUTF16);
143 memcpy(pwsz, pwszString, cb);
152 RTDECL(size_t) RTUtf16Len(PCRTUTF16 pwszString)
154 if (!pwszString)
157 PCRTUTF16 pwsz = pwszString;
160 return pwsz - pwszString;
443 RTDECL(int) RTUtf16ToUtf8Tag(PCRTUTF16 pwszString, char **ppszString, const char *pszTag)
449 Assert(VALID_PTR(pwszString));
456 int rc = rtUtf16CalcUtf8Length(pwszString, RTSTR_MAX, &cch);
465 rc = rtUtf16RecodeAsUtf8(pwszString, RTSTR_MAX, pszResult, cch, &cch);
482 RTDECL(int) RTUtf16ToUtf8ExTag(PCRTUTF16 pwszString, size_t cwcString, char **ppsz, size_t cch, size_t *pcch, const char *pszTag)
487 Assert(VALID_PTR(pwszString));
495 int rc = rtUtf16CalcUtf8Length(pwszString, cwcString, &cchResult);
522 rc = rtUtf16RecodeAsUtf8(pwszString, cwcString, pszResult, cch - 1, &cch);