Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/stringhelpers.cpp
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | 165 | { | |||
---|---|---|---|---|---|
186 | case '"': | 186 | case '"': | ||
187 | last = str[a]; | 187 | last = str[a]; | ||
188 | a++; | 188 | a++; | ||
189 | while (a < (int)str.length() && (str[a] != QLatin1Char('"') || last == QLatin1Char('\\'))) { | 189 | while (a < (int)str.length() && (str[a] != QLatin1Char('"') || last == QLatin1Char('\\'))) { | ||
190 | last = str[a]; | 190 | last = str[a]; | ||
191 | a++; | 191 | a++; | ||
192 | } | 192 | } | ||
193 | continue; | 193 | continue; | ||
194 | break; | | |||
195 | case '\'': | 194 | case '\'': | ||
196 | last = str[a]; | 195 | last = str[a]; | ||
197 | a++; | 196 | a++; | ||
198 | while( a < (int)str.length() && (str[a] != QLatin1Char('\'') || last == QLatin1Char('\\'))) | 197 | while( a < (int)str.length() && (str[a] != QLatin1Char('\'') || last == QLatin1Char('\\'))) | ||
199 | { | 198 | { | ||
200 | last = str[a]; | 199 | last = str[a]; | ||
201 | a++; | 200 | a++; | ||
202 | } | 201 | } | ||
203 | continue; | 202 | continue; | ||
204 | break; | | |||
205 | } | 203 | } | ||
206 | 204 | | |||
207 | last = str[a]; | 205 | last = str[a]; | ||
208 | 206 | | |||
209 | if( depth == 0 ) | 207 | if( depth == 0 ) | ||
210 | { | 208 | { | ||
211 | return a; | 209 | return a; | ||
212 | } | 210 | } | ||
▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines |