Lines Matching defs:from
326 _INTERNAL_trim_to_complete_utf8_characters(const char *from,
330 for (; fromLim > from; fromLim--, walked++) {
379 /* Avoid copying partial characters (from incomplete input). */
408 const char *from = *fromP;
409 while (from < fromLim && to < toLim) {
410 switch (((struct normal_encoding *)enc)->type[(unsigned char)*from]) {
412 if (fromLim - from < 2) {
416 *to++ = (unsigned short)(((from[0] & 0x1f) << 6) | (from[1] & 0x3f));
417 from += 2;
420 if (fromLim - from < 3) {
424 *to++ = (unsigned short)(((from[0] & 0xf) << 12) | ((from[1] & 0x3f) << 6)
425 | (from[2] & 0x3f));
426 from += 3;
434 if (fromLim - from < 4) {
438 n = ((from[0] & 0x7) << 18) | ((from[1] & 0x3f) << 12)
439 | ((from[2] & 0x3f) << 6) | (from[3] & 0x3f);
444 from += 4;
447 *to++ = *from++;
451 if (from < fromLim)
454 *fromP = from;
624 const char *from = *fromP; \
626 fromLim = from + (((fromLim - from) >> 1) << 1); /* shrink to even */ \
627 for (; from < fromLim; from += 2) { \
630 unsigned char lo = GET_LO(from); \
631 unsigned char hi = GET_HI(from); \
636 *fromP = from; \
651 *fromP = from; \
659 *fromP = from; \
672 *fromP = from; \
675 if (fromLim - from < 4) { \
676 *fromP = from; \
682 from += 2; \
683 lo2 = GET_LO(from); \
684 *(*toP)++ = (((lo & 0x3) << 4) | ((GET_HI(from) & 0x3) << 2) \
690 *fromP = from; \
691 if (from < fromLim) \
1020 * only called from two places, both of which guarantee to put
1529 /* This is what detects the encoding. encodingTable maps from