Lines Matching refs:string
57 static const string kCTypePatterns[] = {"#1", "#2", "#3", "#4"};
58 static const string kRSTypePatterns[] = {"#RST_1", "#RST_2", "#RST_3", "#RST_4"};
64 static int findCType(const string& cType) { in findCType()
76 static vector<string> convertToTypeVector(const string& input) { in convertToTypeVector()
78 vector<string> entries; in convertToTypeVector()
80 string entry; in convertToTypeVector()
90 vector<string> result; in convertToTypeVector()
110 static bool isRSTValid(const vector<string> &typeVector) { in isRSTValid()
118 void getVectorSizeAndBaseType(const string& type, string& vectorSize, string& baseType) { in getVectorSizeAndBaseType()
130 const string trimmed = type.substr(0, last); in getVectorSizeAndBaseType()
139 void ParameterDefinition::parseParameterDefinition(const string& type, const string& name, in parseParameterDefinition()
140 const string& testOption, int lineNumber, in parseParameterDefinition()
187 if (pComma == string::npos || pParen == string::npos) { in parseParameterDefinition()
195 if (pParen == string::npos) { in parseParameterDefinition()
202 if (pParen == string::npos) { in parseParameterDefinition()
229 const string s = scanner->getValue(); in scan()
258 Definition::Definition(const std::string& name) in Definition()
281 string value = scanner->getValue(); in scanDocumentationTags()
283 if (pComma != string::npos) { in scanDocumentationTags()
320 Function::Function(const string& name) : Definition(name) { in Function()
366 string name = scanner->getValue(); in scanConstantSpecification()
392 string name = scanner->getValue(); in scanTypeSpecification()
419 string s = scanner->getValue(); in scanTypeSpecification()
420 string comment; in scanTypeSpecification()
430 string s = scanner->getValue(); in scanTypeSpecification()
431 string comment; in scanTypeSpecification()
455 string FunctionSpecification::expandRSTypeInString(const string &s, in expandRSTypeInString()
456 const string &pattern, in expandRSTypeInString()
457 const string &cTypeStr) const { in expandRSTypeInString()
469 string FunctionSpecification::expandString(string s, in expandString()
474 string toString = mReplaceables[idx][replacementIndexes[idx]]; in expandString()
486 void FunctionSpecification::expandStringVector(const vector<string>& in, in expandStringVector()
488 vector<string>* out) const { in expandStringVector()
490 for (vector<string>::const_iterator iter = in.begin(); iter != in.end(); iter++) { in expandStringVector()
525 string FunctionSpecification::getName(int replacementIndexes[MAX_REPLACEABLES]) const { in getName()
530 std::string* retType, int* lineNumber) const { in getReturn()
536 std::string* type, std::string* name, std::string* testOption, in getParam()
546 std::vector<std::string>* inlines) const { in getInlines()
551 const string value = scanner->getValue(); in parseTest()
559 if (pParen == string::npos) { in parseTest()
580 void FunctionSpecification::checkRSTPatternValidity(const string &inlineStr, bool allow, in checkRSTPatternValidity()
583 bool patternFound = inlineStr.find(kRSTypePatterns[i]) != string::npos; in checkRSTPatternValidity()
601 const string& unexpandedName = scanner->getValue(); in scanFunctionSpecification()
602 string name = unexpandedName; in scanFunctionSpecification()
604 if (p != string::npos) { in scanFunctionSpecification()
638 vector<string> t; in scanFunctionSpecification()
639 if (scanner->getValue().find("1") != string::npos) { in scanFunctionSpecification()
642 if (scanner->getValue().find("2") != string::npos) { in scanFunctionSpecification()
645 if (scanner->getValue().find("3") != string::npos) { in scanFunctionSpecification()
648 if (scanner->getValue().find("4") != string::npos) { in scanFunctionSpecification()
717 string type, name, testOption; in FunctionPermutation()
739 string retType; in FunctionPermutation()
759 SpecFile::SpecFile(const string& specFileName) : mSpecFileName(specFileName) { in SpecFile()
760 string core = mSpecFileName; in SpecFile()
779 mDocumentedConstants.insert(pair<string, Constant*>(constant->getName(), constant)); in addConstantSpecification()
787 mDocumentedTypes.insert(pair<string, Type*>(type->getName(), type)); in addTypeSpecification()
795 mDocumentedFunctions.insert(pair<string, Function*>(function->getName(), function)); in addFunctionSpecification()
835 const string tag = scanner.getNextTag(); in readSpecFile()
869 T* findOrCreate(const string& name, map<string, T*>* map, bool* created) { in findOrCreate() argument
877 map->insert(pair<string, T*>(name, f)); in findOrCreate()
881 Constant* SystemSpecification::findOrCreateConstant(const string& name, bool* created) { in findOrCreateConstant()
885 Type* SystemSpecification::findOrCreateType(const string& name, bool* created) { in findOrCreateType()
889 Function* SystemSpecification::findOrCreateFunction(const string& name, bool* created) { in findOrCreateFunction()
893 bool SystemSpecification::readSpecFile(const string& fileName, unsigned int maxApiLevel) { in readSpecFile()
944 string SystemSpecification::getHtmlAnchor(const string& name) const { in getHtmlAnchor()
958 return string(); in getHtmlAnchor()