Lines Matching refs:srcptr
1627 const unsigned char *srcptr; /* Pointer into input string */ in smart_strlcpy() local
1633 …for (srcptr = (unsigned char *)src, dstptr = (unsigned char *)dst, dstend = dstptr + dstsize - 1; … in smart_strlcpy()
1635 if (*srcptr < 0x80) in smart_strlcpy()
1636 *dstptr++ = *srcptr++; /* ASCII */ in smart_strlcpy()
1647 *dstptr++ = 0xc0 | (*srcptr >> 6); in smart_strlcpy()
1648 *dstptr++ = 0x80 | (*srcptr++ & 0x3f); in smart_strlcpy()
1650 else if ((*srcptr & 0xe0) == 0xc0 && (srcptr[1] & 0xc0) == 0x80) in smart_strlcpy()
1659 *dstptr++ = *srcptr++; in smart_strlcpy()
1660 *dstptr++ = *srcptr++; in smart_strlcpy()
1662 else if ((*srcptr & 0xf0) == 0xe0 && (srcptr[1] & 0xc0) == 0x80 && (srcptr[2] & 0xc0) == 0x80) in smart_strlcpy()
1671 *dstptr++ = *srcptr++; in smart_strlcpy()
1672 *dstptr++ = *srcptr++; in smart_strlcpy()
1673 *dstptr++ = *srcptr++; in smart_strlcpy()
1675 …else if ((*srcptr & 0xf8) == 0xf0 && (srcptr[1] & 0xc0) == 0x80 && (srcptr[2] & 0xc0) == 0x80 && (… in smart_strlcpy()
1684 *dstptr++ = *srcptr++; in smart_strlcpy()
1685 *dstptr++ = *srcptr++; in smart_strlcpy()
1686 *dstptr++ = *srcptr++; in smart_strlcpy()
1687 *dstptr++ = *srcptr++; in smart_strlcpy()
1700 *dstptr++ = 0xc0 | (*srcptr >> 6); in smart_strlcpy()
1701 *dstptr++ = 0x80 | (*srcptr++ & 0x3f); in smart_strlcpy()