| 9 | #include <QString> |
| 10 | |
| 11 | void CacheLine::readLine(const QString& line) |
| 12 | { |
| 13 | m_line=line; |
| 14 | int i; |
| 15 | for (i = 0; i < line.size() && line[i] != QLatin1Char('='); ++i) { |
| 16 | if(line[i] == QLatin1Char(':')) { |
| 17 | colon=i; |
| 18 | if(endName<0) |
| 19 | endName=i; |
| 20 | } else if(line[i] == QLatin1Char('-')) { |
| 21 | dash=i; |
| 22 | endName=i; |
| 23 | } |
| 24 | } |
| 25 | equal=i; |
| 26 | } |
| 27 | |
| 28 | QString CacheLine::name() const |
| 29 | { return m_line.left( endName ); } |