Changeset 10106 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Jul 2, 2008 1:40:07 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32610
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/utf-8.cpp
r8245 r10106 287 287 *pcCps = RT_SUCCESS(rc) ? cCodePoints : 0; 288 288 return rc; 289 } 290 291 292 RTDECL(int) RTStrValidateEncoding(const char *psz) 293 { 294 return RTStrValidateEncodingEx(psz, RTSTR_MAX, 0); 295 } 296 297 298 RTDECL(int) RTStrValidateEncodingEx(const char *psz, size_t cch, unsigned fFlags) 299 { 300 NOREF(fFlags); 301 size_t cCpsIgnored; 302 return RTStrUniLenEx(psz, cch, &cCpsIgnored); 303 } 304 305 306 RTDECL(bool) RTStrIsValidEncoding(const char *psz) 307 { 308 int rc = RTStrValidateEncodingEx(psz, RTSTR_MAX, 0); 309 return RT_SUCCESS(rc); 289 310 } 290 311
Note:
See TracChangeset
for help on using the changeset viewer.