Home | History | Annotate | Download | only in common

Lines Matching refs:str

31  * backslash: Return malloc'd copy of str with all standard "backslash
35 backslash(char *str)
49 if ((new_str = strdup(str)) == NULL)
52 while (*str) {
55 switch (*str) {
58 str++;
66 new_str[i++] = *str++;
71 str++;
76 str++;
81 str++;
86 str++;
91 str++;
96 str++;
101 str++;
105 str++;
113 if (*str >= '0' && *str <= '3' &&
114 *(str + 1) >= '0' && *(str + 1) <= '7' &&
115 *(str + 2) >= '0' && *(str + 2) <= '7') {
117 val = (DIGIT(*str) << 6) + (DIGIT(*(str + 1)) << 3) +
118 DIGIT(*(str + 2));
123 str += 3;
131 if (*str == '0' &&
132 (*(str + 1) == 'x' || *(str + 1) == 'X') &&
133 isxdigit(*(str + 2))) {
134 val = DIGIT(*(str + 2));
135 if (isxdigit(*(str + 3))) {
136 val = (val << 4) + DIGIT(*(str + 3));
137 str += 4;
140 str += 3;
149 new_str[i++] = *str++;
154 if (*str == '\\') {
156 str++;
159 new_str[i++] = *str++;