Lines Matching refs:i
41 int s, i = 0; in parse_field() local
45 if (!str[i]) in parse_field()
48 while (isspace(str[i])) in parse_field()
49 i++; in parse_field()
50 s = i; in parse_field()
51 while (isalnum(str[i]) || str[i] == '_') in parse_field()
52 i++; in parse_field()
53 len = i - s; in parse_field()
66 while (isspace(str[i])) in parse_field()
67 i++; in parse_field()
68 if (str[i] != '=') in parse_field()
70 i++; in parse_field()
71 while (isspace(str[i])) in parse_field()
72 i++; in parse_field()
73 s = i; in parse_field()
74 if (isdigit(str[i]) || str[i] == '-') { in parse_field()
82 if (str[i] == '-') in parse_field()
83 i++; in parse_field()
86 while (isalnum(str[i])) in parse_field()
87 i++; in parse_field()
89 c = str[i]; in parse_field()
92 str[i] = '\0'; in parse_field()
98 str[i] = c; in parse_field()
103 return i; in parse_field()
104 } else if (str[i] == '\'' || str[i] == '"') { in parse_field()
105 char q = str[i]; in parse_field()
111 for (i++; str[i]; i++) { in parse_field()
112 if (str[i] == '\\' && str[i + 1]) { in parse_field()
113 i++; in parse_field()
116 if (str[i] == q) in parse_field()
119 if (!str[i]) in parse_field()
124 len = i - s; in parse_field()
129 str[i] = 0; in parse_field()
131 i++; in parse_field()
132 return i; in parse_field()