Lines Matching refs:tok
110 char *tok, *str, *type = NULL, *ext = NULL, *params = NULL;
120 tok = str;
121 while (tok = strchr(tok, ':'), tok)
123 if (tok == str || tok[-1] != '\\')
125 memmove(&tok[-1], tok, strlen(tok) + 1);
127 if (tok)
129 *tok = '\0';
132 *tok = ':';
136 ++tok;
138 memmove(str, tok, strlen(tok) + 1);
143 tok = str;
144 while (tok = strchr(tok, '?'), tok)
146 if (tok == str || tok[-1] != '\\')
147 params = tok;
148 if (tok != str && tok[-1] == '\\')
149 memmove(&tok[-1], tok, strlen(tok) + 1);
160 tok = str;
161 while (tok = strchr(tok, '.'), tok)
163 if (tok == str || tok[-1] != '\\')
164 ext = tok;
165 if (tok != str && tok[-1] == '\\')
166 memmove(&tok[-1], tok, strlen(tok) + 1);
189 for (tok = strtok(params, "&"); tok; tok = strtok(NULL, "&"))
191 val = strchr(tok, '=');
201 arg = XtNewString(tok);
680 char *tok, *buffer = XtNewString(value.addr);
682 for (tok = strtok(buffer, ":"); tok; tok = strtok(NULL, ":")) {
683 int toklen = (int)strlen(tok);
687 strcpy(pixmap_path + length, tok);
690 sprintf(pixmap_path + length, "%s/%%N", tok);
691 length = (length + (int)strlen(tok) + 3);