Lines Matching refs:index
58 size_t index = FindCommandLineFlag(cmd, name); in FindCommandLineFlagWithArg() local
59 if (index == string::npos) in FindCommandLineFlagWithArg()
62 StringPiece val = TrimLeftSpace(cmd.substr(index + name.size())); in FindCommandLineFlagWithArg()
63 index = val.find(name); in FindCommandLineFlagWithArg()
64 while (index != string::npos) { in FindCommandLineFlagWithArg()
65 val = TrimLeftSpace(val.substr(index + name.size())); in FindCommandLineFlagWithArg()
66 index = val.find(name); in FindCommandLineFlagWithArg()
69 index = val.find_first_of(" \t"); in FindCommandLineFlagWithArg()
70 return val.substr(0, index); in FindCommandLineFlagWithArg()
81 size_t index = cmdline.find(' '); in GetGomaccPosForAndroidCompileCommand() local
82 if (index == string::npos) in GetGomaccPosForAndroidCompileCommand()
84 StringPiece cmd = cmdline.substr(0, index); in GetGomaccPosForAndroidCompileCommand()
86 index++; in GetGomaccPosForAndroidCompileCommand()
87 size_t pos = GetGomaccPosForAndroidCompileCommand(cmdline.substr(index)); in GetGomaccPosForAndroidCompileCommand()
88 return pos == string::npos ? string::npos : pos + index; in GetGomaccPosForAndroidCompileCommand()
99 StringPiece rest = cmdline.substr(index); in GetGomaccPosForAndroidCompileCommand()