c__prev_word(): * Find the previous word */
| 233 | * Find the previous word |
| 234 | */ |
| 235 | protected Char * |
| 236 | c__prev_word(Char *p, Char *low, int n, int (*wtest)(Int)) |
| 237 | { |
| 238 | p--; |
| 239 | |
| 240 | while (n--) { |
| 241 | while ((p >= low) && !(*wtest)(*p)) |
| 242 | p--; |
| 243 | while ((p >= low) && (*wtest)(*p)) |
| 244 | p--; |
| 245 | } |
| 246 | |
| 247 | /* cp now points to one character before the word */ |
| 248 | p++; |
| 249 | if (p < low) |
| 250 | p = low; |
| 251 | /* cp now points where we want it */ |
| 252 | return p; |
| 253 | } |
| 254 | |
| 255 | |
| 256 | /* c__next_word(): |
no outgoing calls
no test coverage detected