Lines Matching refs:ptr
76 char *ptr; in expand() local
87 ptr = ptr_strbeg = line; in expand()
89 unsigned char c = *ptr; in expand()
112 *ptr = '\0'; in expand()
116 len += ptr - ptr_strbeg; in expand()
122 ptr_strbeg = ptr + 1; in expand()
124 ptr++; in expand()
138 char *ptr = line; in unexpand() local
141 while (*ptr) { in unexpand()
145 while (*ptr == ' ') { in unexpand()
146 ptr++; in unexpand()
150 if (*ptr == '\t') { in unexpand()
152 ptr++; in unexpand()
163 if (!(opt & OPT_ALL) && ptr != line) { in unexpand()
164 printf("%*s%s", len, "", ptr); in unexpand()
167 n = strcspn(ptr, "\t "); in unexpand()
168 printf("%*s%.*s", len, "", n, ptr); in unexpand()
171 char c = ptr[n]; in unexpand()
172 ptr[n] = '\0'; in unexpand()
173 len = unicode_strwidth(ptr); in unexpand()
174 ptr[n] = c; in unexpand()
179 ptr += n; in unexpand()