Lines Matching refs:str
84 static char *get_key_data(char *str, struct sort_key *key, int flags)
91 && !(flags&(FLAG_b|FLAG_d|FLAG_i|FLAG_bb))) return str;
95 len = strlen(str);
105 if (str[end] && !TT.t) while (isspace(str[end])) end++;
108 for (; str[end]; end++) {
110 if (str[end]==*TT.t) {
114 } else if (isspace(str[end])) break;
122 if (TT.t && str[start]==*TT.t) start++;
126 while (isspace(str[start])) start++;
127 if (flags&FLAG_bb) while (end>start && isspace(str[end-1])) end--;
141 str = xstrndup(str+start, end-start);
145 for (start = end = 0; str[end]; end++)
146 if (isspace(str[end]) || isalnum(str[end])) str[start++] = str[end];
147 str[start] = 0;
152 for (start = end = 0; str[end]; end++)
153 if (isprint(str[end])) str[start++] = str[end];
154 str[start] = 0;
157 return str;