Lines Matching defs:str
27 * backslash: Return malloc'd copy of str with all standard "backslash
31 backslash(char *str)
45 if ((new_str = strdup(str)) == NULL)
48 while (*str) {
51 switch (*str) {
54 str++;
62 new_str[i++] = *str++;
67 str++;
72 str++;
77 str++;
82 str++;
87 str++;
92 str++;
97 str++;
101 str++;
109 if (*str >= '0' && *str <= '3' &&
110 *(str + 1) >= '0' && *(str + 1) <= '7' &&
111 *(str + 2) >= '0' && *(str + 2) <= '7') {
113 val = (DIGIT(*str) << 6) + (DIGIT(*(str + 1)) << 3) +
114 DIGIT(*(str + 2));
119 str += 3;
127 if (*str == '0' &&
128 (*(str + 1) == 'x' || *(str + 1) == 'X') &&
129 isxdigit(*(str + 2))) {
130 val = DIGIT(*(str + 2));
131 if (isxdigit(*(str + 3))) {
132 val = (val << 4) + DIGIT(*(str + 3));
133 str += 4;
136 str += 3;
145 new_str[i++] = *str++;
150 if (*str == '\\') {
152 str++;
155 new_str[i++] = *str++;