Lines Matching refs:used
20 int used = 0; in CEscapeString() local
23 if (dest_len - used < 2) // Need space for two letter escape in CEscapeString()
28 case '\n': dest[used++] = '\\'; dest[used++] = 'n'; break; in CEscapeString()
29 case '\r': dest[used++] = '\\'; dest[used++] = 'r'; break; in CEscapeString()
30 case '\t': dest[used++] = '\\'; dest[used++] = 't'; break; in CEscapeString()
31 case '\"': dest[used++] = '\\'; dest[used++] = '\"'; break; in CEscapeString()
32 case '\'': dest[used++] = '\\'; dest[used++] = '\''; break; in CEscapeString()
33 case '\\': dest[used++] = '\\'; dest[used++] = '\\'; break; in CEscapeString()
39 if (dest_len - used < 4) // need space for 4 letter escape in CEscapeString()
41 sprintf(dest + used, "\\%03o", c); in CEscapeString()
42 used += 4; in CEscapeString()
44 dest[used++] = c; break; in CEscapeString()
49 if (dest_len - used < 1) // make sure that there is room for \0 in CEscapeString()
52 dest[used] = '\0'; // doesn't count towards return value though in CEscapeString()
53 return used; in CEscapeString()