MCPcopy Create free account
hub / github.com/KDE/kdevelop / readLine

Method readLine

plugins/cmake/parser/cmakecachereader.cpp:11–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <QString>
10
11void 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
28QString CacheLine::name() const
29{ return m_line.left( endName ); }

Callers 15

addModelineMethod · 0.80
readMethod · 0.80
askUserFunction · 0.80
readLinesMethod · 0.80
nextLineMethod · 0.80
peekNextLineMethod · 0.80
parseGitLogOutputMethod · 0.80
parseCustomMakeFileMethod · 0.80
commandLineMethod · 0.80
grepFileFunction · 0.80
readProcessFunction · 0.80
queryQMakeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

readLinesMethod · 0.64