Lines Matching refs:string
29 static bool parseTypeTokens(const std::string& input, in parseTypeTokens()
30 std::vector<std::string>* out, in parseTypeTokens()
31 std::string* error) { in parseTypeTokens()
40 if (pos == std::string::npos) { in parseTypeTokens()
47 out->push_back(std::string("*")); in parseTypeTokens()
54 if (end == std::string::npos) { in parseTypeTokens()
58 std::string str = input.substr(pos, end - pos); in parseTypeTokens()
80 std::string& token = (*out)[n]; in parseTypeTokens()
95 static std::string buildTypeString(const std::vector<std::string>& tokens, in buildTypeString()
97 std::string result; in buildTypeString()
100 const std::string& token = tokens[n]; in buildTypeString()
110 std::string normalizeTypeDeclaration(const std::string& input) { in normalizeTypeDeclaration()
111 std::vector<std::string> tokens; in normalizeTypeDeclaration()
118 bool parseTypeDeclaration(const std::string& input, in parseTypeDeclaration()
119 std::string* typeName, in parseTypeDeclaration()
120 std::string* error) { in parseTypeDeclaration()
124 std::vector<std::string> tokens; in parseTypeDeclaration()
147 bool parseParameterDeclaration(const std::string& param, in parseParameterDeclaration()
148 std::string* typeName, in parseParameterDeclaration()
149 std::string* variableName, in parseParameterDeclaration()
150 std::string* error) { in parseParameterDeclaration()
151 std::vector<std::string> tokens; in parseParameterDeclaration()
174 const std::string& lastToken = tokens[tokens.size() - 1U]; in parseParameterDeclaration()