Lines Matching refs:string

12 #include <string>
13 #include <string.h>
26 // macro trickery to create a string literal
61 Type(const string& type) : type(type) {}
63 string type;
70 NamedType(const string& type, const string& name)
73 string name;
81 void SetName(const string& name)
86 const string& GetName() const
117 string fName;
125 string GetKernelName() const
132 string kernelName("_user_");
133 kernelName.append(string(fName, baseIndex));
147 string GetCurrentToken()
154 string GetNextToken()
159 string GetNextToken(stack<string>& skippedTokens)
164 string GetNextToken(stack<string>* skippedTokens)
178 void ExpectToken(const string& expectedToken)
180 string token = GetCurrentToken();
182 throw ParseException(string("Unexpected token `") + token
187 void ExpectNextToken(const string& expectedToken)
193 bool CheckToken(const string& expectedToken)
195 string token = GetCurrentToken();
199 bool CheckNextToken(const string& expectedToken)
215 void PutToken(string token)
224 void PutTokens(stack<string>& tokens)
244 vector<string> line;
251 line.push_back(string(buffer + tokenStart, buffer + i));
266 line.push_back(string(buffer + tokenStart,
269 line.push_back(string(buffer + i, buffer + i + 1));
275 line.push_back(string(buffer + tokenStart, buffer + len));
288 list<string> fTokens;
300 && (string(argv[1]) == "-h" || string(argv[1]) == "--help")) {
320 throw IOException(string("Failed to open `") + filename + "'.");
326 stack<string> skippedTokens;
351 throw IOException(string("Failed to open `") + filename + "'.");
422 throw IOException(string("Failed to open `") + filename + "'.");
474 vector<string> returnType;
476 string token = tokenizer.GetCurrentToken();
487 string returnTypeString(returnType[0]);
506 vector<string> type;
509 string token = tokenizer.GetCurrentToken();
528 string typeName = type.back();
531 string typeString(type[0]);
540 vector<string>& type)
553 string typeName;
568 // compose the type string and add it to the syscall parameters
569 string typeString(type[0]);