Lines Matching refs:str
24 * backslash: Return malloc'd copy of str with all standard "backslash
28 backslash(const char *str)
42 if ((new_str = strdup(str)) == NULL)
45 while (*str) {
48 switch (*str) {
51 str++;
59 new_str[i++] = *str++;
64 str++;
69 str++;
74 str++;
79 str++;
84 str++;
89 str++;
94 str++;
98 str++;
106 if (*str >= '0' && *str <= '3' &&
107 *(str + 1) >= '0' && *(str + 1) <= '7' &&
108 *(str + 2) >= '0' && *(str + 2) <= '7') {
110 val = (DIGIT(*str) << 6) + (DIGIT(*(str + 1)) << 3) +
111 DIGIT(*(str + 2));
116 str += 3;
124 if (*str == '0' &&
125 (*(str + 1) == 'x' || *(str + 1) == 'X') &&
126 isxdigit(*(str + 2))) {
127 val = DIGIT(*(str + 2));
128 if (isxdigit(*(str + 3))) {
129 val = (val << 4) + DIGIT(*(str + 3));
130 str += 4;
133 str += 3;
142 new_str[i++] = *str++;
147 if (*str == '\\') {
149 str++;
152 new_str[i++] = *str++;