Lines Matching refs:kp
1177 png_charp kp, dp;
1200 for (kp = key, dp = *new_key; *kp != '\0'; kp++, dp++)
1202 if (*kp < 0x20 || (*kp > 0x7E && (png_byte)*kp < 0xA1))
1207 sprintf(msg, "invalid keyword character 0x%02X", *kp);
1216 *dp = *kp;
1222 kp = *new_key + key_len - 1;
1223 if (*kp == ' ')
1227 while (*kp == ' ')
1229 *(kp--) = '\0';
1235 kp = *new_key;
1236 if (*kp == ' ')
1240 while (*kp == ' ')
1242 kp++;
1247 png_debug1(2, "Checking for multiple internal spaces in '%s'\n", kp);
1250 for (kflag = 0, dp = *new_key; *kp != '\0'; kp++)
1252 if (*kp == ' ' && kflag == 0)
1254 *(dp++) = *kp;
1257 else if (*kp == ' ')
1264 *(dp++) = *kp;