Changeset 69046 in vbox for trunk/src/VBox/Runtime/common/string/utf-8.cpp
- Timestamp:
- Oct 11, 2017 4:11:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/utf-8.cpp
r67334 r69046 95 95 case 6: 96 96 RTStrAssertMsgReturn((puch[5] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("6/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 97 /* fall thru */97 RT_FALL_THRU(); 98 98 case 5: 99 99 RTStrAssertMsgReturn((puch[4] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("5/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 100 /* fall thru */100 RT_FALL_THRU(); 101 101 case 4: 102 102 RTStrAssertMsgReturn((puch[3] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("4/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 103 /* fall thru */103 RT_FALL_THRU(); 104 104 case 3: 105 105 RTStrAssertMsgReturn((puch[2] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("3/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 106 /* fall thru */106 RT_FALL_THRU(); 107 107 case 2: 108 108 RTStrAssertMsgReturn((puch[1] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("2/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); … … 607 607 case 6: 608 608 RTStrAssertMsgReturn((puch[5] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("6/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 609 /* fall thru */609 RT_FALL_THRU(); 610 610 case 5: 611 611 RTStrAssertMsgReturn((puch[4] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("5/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 612 /* fall thru */612 RT_FALL_THRU(); 613 613 case 4: 614 614 RTStrAssertMsgReturn((puch[3] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("4/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 615 /* fall thru */615 RT_FALL_THRU(); 616 616 case 3: 617 617 RTStrAssertMsgReturn((puch[2] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("3/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); 618 /* fall thru */618 RT_FALL_THRU(); 619 619 case 2: 620 620 RTStrAssertMsgReturn((puch[1] & (RT_BIT(7) | RT_BIT(6))) == RT_BIT(7), ("2/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, cch), puch), VERR_INVALID_UTF8_ENCODING); … … 1686 1686 RTStrAssertMsgReturn((puch[5] & 0xc0) == 0x80, ("6/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1687 1687 rtStrGetCpExFailure(ppsz, pCp, VERR_INVALID_UTF8_ENCODING)); 1688 /* fall thru */1688 RT_FALL_THRU(); 1689 1689 case 5: 1690 1690 RTStrAssertMsgReturn((puch[4] & 0xc0) == 0x80, ("5/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1691 1691 rtStrGetCpExFailure(ppsz, pCp, VERR_INVALID_UTF8_ENCODING)); 1692 /* fall thru */1692 RT_FALL_THRU(); 1693 1693 case 4: 1694 1694 RTStrAssertMsgReturn((puch[3] & 0xc0) == 0x80, ("4/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1695 1695 rtStrGetCpExFailure(ppsz, pCp, VERR_INVALID_UTF8_ENCODING)); 1696 /* fall thru */1696 RT_FALL_THRU(); 1697 1697 case 3: 1698 1698 RTStrAssertMsgReturn((puch[2] & 0xc0) == 0x80, ("3/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1699 1699 rtStrGetCpExFailure(ppsz, pCp, VERR_INVALID_UTF8_ENCODING)); 1700 /* fall thru */1700 RT_FALL_THRU(); 1701 1701 case 2: 1702 1702 RTStrAssertMsgReturn((puch[1] & 0xc0) == 0x80, ("2/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), … … 1845 1845 RTStrAssertMsgReturn((puch[5] & 0xc0) == 0x80, ("6/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1846 1846 rtStrGetCpNExFailure(ppsz, pcch, pCp, VERR_INVALID_UTF8_ENCODING)); 1847 /* fall thru */1847 RT_FALL_THRU(); 1848 1848 case 5: 1849 1849 RTStrAssertMsgReturn((puch[4] & 0xc0) == 0x80, ("5/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1850 1850 rtStrGetCpNExFailure(ppsz, pcch, pCp, VERR_INVALID_UTF8_ENCODING)); 1851 /* fall thru */1851 RT_FALL_THRU(); 1852 1852 case 4: 1853 1853 RTStrAssertMsgReturn((puch[3] & 0xc0) == 0x80, ("4/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1854 1854 rtStrGetCpNExFailure(ppsz, pcch, pCp, VERR_INVALID_UTF8_ENCODING)); 1855 /* fall thru */1855 RT_FALL_THRU(); 1856 1856 case 3: 1857 1857 RTStrAssertMsgReturn((puch[2] & 0xc0) == 0x80, ("3/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch), 1858 1858 rtStrGetCpNExFailure(ppsz, pcch, pCp, VERR_INVALID_UTF8_ENCODING)); 1859 /* fall thru */1859 RT_FALL_THRU(); 1860 1860 case 2: 1861 1861 RTStrAssertMsgReturn((puch[1] & 0xc0) == 0x80, ("2/%u: %.*Rhxs\n", cb, RT_MIN(cb + 10, strlen((char *)puch)), puch),
Note:
See TracChangeset
for help on using the changeset viewer.