Lines Matching full:cp

34 	char *cp;  in chars_chartab_show()  local
49 cp = "B_CTL"; in chars_chartab_show()
51 cp = "WDLM"; in chars_chartab_show()
53 cp = "A_PUNC"; in chars_chartab_show()
55 cp = "PUNC"; in chars_chartab_show()
57 cp = "NUM"; in chars_chartab_show()
59 cp = "A_CAP"; in chars_chartab_show()
61 cp = "ALPHA"; in chars_chartab_show()
63 cp = "B_CAPSYM"; in chars_chartab_show()
65 cp = "B_SYM"; in chars_chartab_show()
67 cp = "0"; in chars_chartab_show()
69 scnprintf(buf_pointer, bufsize, "%d\t%s\n", i, cp); in chars_chartab_show()
113 char *cp = (char *)buf; in chars_chartab_store() local
114 char *end = cp + count; /* the null at the end of the buffer */ in chars_chartab_store()
133 while (cp < end) { in chars_chartab_store()
134 while ((cp < end) && (*cp == ' ' || *cp == '\t')) in chars_chartab_store()
135 cp++; in chars_chartab_store()
137 if (cp == end) in chars_chartab_store()
139 if ((*cp == '\n') || strchr("dDrR", *cp)) { in chars_chartab_store()
145 linefeed = strchr(cp, '\n'); in chars_chartab_store()
151 if (!isdigit(*cp)) { in chars_chartab_store()
153 cp = linefeed + 1; in chars_chartab_store()
161 index = simple_strtoul(cp, &temp, 10); in chars_chartab_store()
164 cp = linefeed + 1; in chars_chartab_store()
174 cp = linefeed + 1; in chars_chartab_store()
202 cp = linefeed + 1; in chars_chartab_store()
210 cp = linefeed + 1; in chars_chartab_store()
232 char *cp = buf; in keymap_show() local
245 cp += sprintf(cp, "%d, %d, %d,\n", KEY_MAP_VER, num_keys, nstates); in keymap_show()
253 cp += sprintf(cp, "%d,", (int)ch); in keymap_show()
254 *cp++ = (i < nstates) ? SPACE : '\n'; in keymap_show()
257 cp += sprintf(cp, "0, %d\n", KEY_MAP_VER); in keymap_show()
259 return (int)(cp - buf); in keymap_show()
271 char *cp; in keymap_store() local
290 cp = in_buff; in keymap_store()
293 cp = spk_s2uchar(cp, cp1); in keymap_store()
308 cp = spk_s2uchar(cp, cp1); in keymap_store()
310 if (!(*cp)) in keymap_store()
443 char *cp; in version_show() local
445 cp = buf; in version_show()
446 cp += sprintf(cp, "Speakup version %s\n", SPEAKUP_VERSION); in version_show()
448 cp += sprintf(cp, "%s synthesizer driver version %s\n", in version_show()
450 return cp - buf; in version_show()
460 char *cp = buf; in punc_show() local
487 *cp++ = (char)i; in punc_show()
490 return cp - buf; in punc_show()
550 char *cp; in spk_var_show() local
572 for (cp = (char *)param->p_val; (ch = *cp); cp++) { in spk_var_show()
625 char *cp; in spk_var_store() local
636 cp = (char *)buf; in spk_var_store()
637 string_unescape_any_inplace(cp); in spk_var_store()
643 if (*cp == 'd' || *cp == 'r' || *cp == '\0') in spk_var_store()
645 else if (*cp == '+' || *cp == '-') in spk_var_store()
649 if (kstrtol(cp, 10, &value) == 0) in spk_var_store()
675 len = strlen(cp); in spk_var_store()
676 if ((len >= 1) && (cp[len - 1] == '\n')) in spk_var_store()
678 if ((len >= 2) && (cp[0] == '"') && (cp[len - 1] == '"')) { in spk_var_store()
679 ++cp; in spk_var_store()
682 cp[len] = '\0'; in spk_var_store()
683 ret = spk_set_string_var(cp, param, len); in spk_var_store()
751 char *cp = (char *)buf; in message_store_helper() local
752 char *end = cp + count; in message_store_helper()
767 while (cp < end) { in message_store_helper()
768 while ((cp < end) && (*cp == ' ' || *cp == '\t')) in message_store_helper()
769 cp++; in message_store_helper()
771 if (cp == end) in message_store_helper()
773 if (strchr("dDrR", *cp)) { in message_store_helper()
779 linefeed = strchr(cp, '\n'); in message_store_helper()
785 if (!isdigit(*cp)) { in message_store_helper()
787 cp = linefeed + 1; in message_store_helper()
795 index = simple_strtoul(cp, &temp, 10); in message_store_helper()
812 cp = linefeed + 1; in message_store_helper()
826 cp = linefeed + 1; in message_store_helper()