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()
446 char *cp; in version_show() local
448 cp = buf; in version_show()
449 cp += sprintf(cp, "Speakup version %s\n", SPEAKUP_VERSION); in version_show()
451 cp += sprintf(cp, "%s synthesizer driver version %s\n", in version_show()
453 return cp - buf; in version_show()
463 char *cp = buf; in punc_show() local
490 *cp++ = (char)i; in punc_show()
493 return cp - buf; in punc_show()
553 char *cp; in spk_var_show() local
575 for (cp = (char *)param->p_val; (ch = *cp); cp++) { in spk_var_show()
628 char *cp; in spk_var_store() local
639 cp = (char *)buf; in spk_var_store()
640 string_unescape_any_inplace(cp); in spk_var_store()
646 if (*cp == 'd' || *cp == 'r' || *cp == '\0') in spk_var_store()
648 else if (*cp == '+' || *cp == '-') in spk_var_store()
652 if (kstrtol(cp, 10, &value) == 0) in spk_var_store()
678 len = strlen(cp); in spk_var_store()
679 if ((len >= 1) && (cp[len - 1] == '\n')) in spk_var_store()
681 if ((len >= 2) && (cp[0] == '"') && (cp[len - 1] == '"')) { in spk_var_store()
682 ++cp; in spk_var_store()
685 cp[len] = '\0'; in spk_var_store()
686 ret = spk_set_string_var(cp, param, len); in spk_var_store()
754 char *cp = (char *)buf; in message_store_helper() local
755 char *end = cp + count; in message_store_helper()
770 while (cp < end) { in message_store_helper()
771 while ((cp < end) && (*cp == ' ' || *cp == '\t')) in message_store_helper()
772 cp++; in message_store_helper()
774 if (cp == end) in message_store_helper()
776 if (strchr("dDrR", *cp)) { in message_store_helper()
782 linefeed = strchr(cp, '\n'); in message_store_helper()
788 if (!isdigit(*cp)) { in message_store_helper()
790 cp = linefeed + 1; in message_store_helper()
798 index = simple_strtoul(cp, &temp, 10); in message_store_helper()
815 cp = linefeed + 1; in message_store_helper()
829 cp = linefeed + 1; in message_store_helper()