Lines Matching defs:org
522 static int make_hot(char *dest, int len, const char *org, int index)
528 int org_len = strlen(org);
530 if (org == NULL || is_hot(index))
538 while (i < org_len && org[i] == ' ')
544 if (org[i] == '[' || org[i] == '<' || org[i] == '(') {
547 if (org[i] == ']' || org[i] == '>' || org[i] == ')')
553 if (canbhot(org[i]) && org[i-1] != '<' && org[i-1] != '(') {
561 /* ok, char at org[position] should be a hot key to this item */
562 c = tolower(org[position]);
567 snprintf(dest, len, "%.*s(%c)%s", position, org, org[position],
568 &org[position+1]);
570 /* make org[position] uppercase, and all leading letter small case */
571 strncpy(dest, org, len);