Lines Matching refs:string
62 std::string type;
63 std::string name;
71 std::string testOption;
72 std::string documentation;
80 std::string rsType; // The Renderscript type, e.g. "uint3"
81 std::string rsBaseType; // As above but without the number, e.g. "uint"
82 std::string javaBaseType; // The type we need to declare in Java, e.g. "unsigned int"
83 std::string specType; // The type found in the spec, e.g. "f16"
88 std::string mVectorSize;
92 std::string vectorWidth;
94 std::string specName; // e.g. x, as found in the spec file
95 std::string variableName; // e.g. inX, used both in .rs and .java
96 std::string rsAllocName; // e.g. gAllocInX
97 std::string javaAllocName; // e.g. inX
98 std::string javaArrayName; // e.g. arrayInX
99 std::string doubleVariableName; // e.g. inXDouble, used in .java for storing Float16 parameters
103 std::string minValue;
104 std::string maxValue;
108 std::string smallerParameter;
119 void parseParameterDefinition(const std::string& type, const std::string& name,
120 const std::string& testOption, int lineNumber, bool isReturn,
155 std::string mName;
160 std::string mDeprecatedMessage; // Optional specific warning if the API is deprecated
162 std::string mSummary; // A one-line description
163 std::vector<std::string> mDescription; // The comments to be included in the header
164 std::string mUrl; // The URL of the detailed documentation
168 Definition(const std::string& name);
170 std::string getName() const { return mName; } in getName()
173 std::string getDeprecatedMessage() const { return mDeprecatedMessage; } in getDeprecatedMessage()
175 std::string getSummary() const { return mSummary; } in getSummary()
176 const std::vector<std::string>& getDescription() const { return mDescription; } in getDescription()
177 std::string getUrl() const { return mUrl; } in getUrl()
193 Constant(const std::string& name) : Definition(name) {} in Constant()
209 Type(const std::string& name) : Definition(name) {} in Type()
223 std::string mCapitalizedName; // The capitalized name, e.g. NativeLog
227 std::string mReturnDocumentation;
232 Function(const std::string& name);
235 std::string getCapitalizedName() const { return mCapitalizedName; } in getCapitalizedName()
237 std::string getReturnDocumentation() const { return mReturnDocumentation; } in getReturnDocumentation()
268 std::string mValue; // E.g. "3.1415"
273 std::string getValue() const { return mValue; } in getValue()
296 std::string mSimpleType; // The definition of the type
299 std::string mStructName; // The name found after the struct keyword
300 std::vector<std::string> mFields; // One entry per struct field
301 std::vector<std::string> mFieldComments; // One entry per struct field
302 std::string mAttribute; // Some structures may have attributes
305 std::string mEnumName; // The name found after the enum keyword
306 std::vector<std::string> mValues; // One entry per enum value
307 std::vector<std::string> mValueComments; // One entry per enum value
313 std::string getSimpleType() const { return mSimpleType; } in getSimpleType()
314 std::string getStructName() const { return mStructName; } in getStructName()
315 const std::vector<std::string>& getFields() const { return mFields; } in getFields()
316 const std::vector<std::string>& getFieldComments() const { return mFieldComments; } in getFieldComments()
317 std::string getAttribute() const { return mAttribute; } in getAttribute()
318 std::string getEnumName() const { return mEnumName; } in getEnumName()
319 const std::vector<std::string>& getValues() const { return mValues; } in getValues()
320 const std::vector<std::string>& getValueComments() const { return mValueComments; } in getValueComments()
352 std::string mTest;
356 std::string mAttribute; // Function attributes.
357 std::string mPrecisionLimit; // Maximum precision required when checking output of this
361 std::vector<std::vector<std::string> > mReplaceables;
378 std::string mUnexpandedName;
381 std::vector<std::string> mInline; // The inline code to be included in the header
390 std::string expandString(std::string s, int indexOfReplaceable[MAX_REPLACEABLES]) const;
391 void expandStringVector(const std::vector<std::string>& in,
393 std::vector<std::string>* out) const;
396 std::string expandRSTypeInString(const std::string &s,
397 const std::string &pattern,
398 const std::string &cTypeStr) const;
411 std::string getAttribute() const { return mAttribute; } in getAttribute()
412 std::string getTest() const { return mTest; } in getTest()
413 std::string getPrecisionLimit() const { return mPrecisionLimit; } in getPrecisionLimit()
417 std::string getName(int replacementIndexes[MAX_REPLACEABLES]) const;
418 void getReturn(int replacementIndexes[MAX_REPLACEABLES], std::string* retType,
421 void getParam(size_t index, int replacementIndexes[MAX_REPLACEABLES], std::string* type,
422 std::string* name, std::string* testOption, int* lineNumber) const;
424 std::vector<std::string>* inlines) const;
446 void checkRSTPatternValidity(const std::string &s, bool allow, Scanner *scanner);
458 std::string mName;
459 std::string mNameTrunk; // The name without any expansion, e.g. convert
460 std::string mTest; // How to test. One of "scalar", "vector", "noverify", "limited", and
462 std::string mPrecisionLimit; // Maximum precision required when checking output of this
478 std::vector<std::string> mInline;
485 std::string getName() const { return mName; } in getName()
486 std::string getNameTrunk() const { return mNameTrunk; } in getNameTrunk()
487 std::string getTest() const { return mTest; } in getTest()
488 std::string getPrecisionLimit() const { return mPrecisionLimit; } in getPrecisionLimit()
490 const std::vector<std::string>& getInline() const { return mInline; } in getInline()
502 std::string mSpecFileName;
503 std::string mHeaderFileName;
504 std::string mDetailedDocumentationUrl;
505 std::string mBriefDescription;
506 std::vector<std::string> mFullDescription;
508 std::vector<std::string> mVerbatimInclude;
525 std::map<std::string, Constant*> mDocumentedConstants;
526 std::map<std::string, Type*> mDocumentedTypes;
527 std::map<std::string, Function*> mDocumentedFunctions;
530 explicit SpecFile(const std::string& specFileName);
532 std::string getSpecFileName() const { return mSpecFileName; } in getSpecFileName()
533 std::string getHeaderFileName() const { return mHeaderFileName; } in getHeaderFileName()
534 std::string getDetailedDocumentationUrl() const { return mDetailedDocumentationUrl; } in getDetailedDocumentationUrl()
535 const std::string getBriefDescription() const { return mBriefDescription; } in getBriefDescription()
536 const std::vector<std::string>& getFullDescription() const { return mFullDescription; } in getFullDescription()
537 const std::vector<std::string>& getVerbatimInclude() const { return mVerbatimInclude; } in getVerbatimInclude()
548 const std::map<std::string, Constant*>& getDocumentedConstants() const { in getDocumentedConstants()
551 const std::map<std::string, Type*>& getDocumentedTypes() const { return mDocumentedTypes; } in getDocumentedTypes()
552 const std::map<std::string, Function*>& getDocumentedFunctions() const { in getDocumentedFunctions()
579 std::map<std::string, Constant*> mConstants;
580 std::map<std::string, Type*> mTypes;
581 std::map<std::string, Function*> mFunctions;
589 Constant* findOrCreateConstant(const std::string& name, bool* created);
590 Type* findOrCreateType(const std::string& name, bool* created);
591 Function* findOrCreateFunction(const std::string& name, bool* created);
596 bool readSpecFile(const std::string& fileName, unsigned int maxApiLevel);
601 const std::map<std::string, Constant*>& getConstants() const { return mConstants; } in getConstants()
602 const std::map<std::string, Type*>& getTypes() const { return mTypes; } in getTypes()
603 const std::map<std::string, Function*>& getFunctions() const { return mFunctions; } in getFunctions()
606 std::string getHtmlAnchor(const std::string& name) const;
622 void getVectorSizeAndBaseType(const std::string& type, std::string& vectorSize,
623 std::string& baseType);