Home
last modified time | relevance | path

Searched refs:StringHelper (Results 1 – 14 of 14) sorted by relevance

/system/tools/hidl/utils/
DStringHelper.cpp35 std::string StringHelper::Uppercase(const std::string &in) { in Uppercase()
46 std::string StringHelper::Lowercase(const std::string &in) { in Lowercase()
57 std::string StringHelper::Capitalize(const std::string &in) { in Capitalize()
68 void StringHelper::Tokenize(const std::string &in, in Tokenize()
106 std::string StringHelper::ToCamelCase(const std::string &in) { in ToCamelCase()
122 std::string StringHelper::ToPascalCase(const std::string &in) { in ToPascalCase()
132 std::string StringHelper::ToUpperSnakeCase(const std::string &in) { in ToUpperSnakeCase()
142 std::string StringHelper::ToLowerSnakeCase(const std::string &in) { in ToLowerSnakeCase()
152 std::string StringHelper::ToCase(StringHelper::Case c, const std::string &in) { in ToCase()
170 bool StringHelper::EndsWith(const std::string &in, const std::string &suffix) { in EndsWith()
[all …]
DFQName.cpp97 setTo(StringHelper::JoinStrings(names, ".")); in FQName()
373 StringHelper::SplitString(mName, '.', &nameComponents); in tokenName()
378 return StringHelper::JoinStrings(components, "_"); in tokenName()
386 out += StringHelper::JoinStrings(components, "::"); in cppNamespace()
393 StringHelper::SplitString(mName, '.', &components); in cppLocalName()
395 return StringHelper::JoinStrings(components, "::") in cppLocalName()
403 StringHelper::SplitString(name(), '.', &components); in cppName()
405 out += StringHelper::JoinStrings(components, "::"); in cppName()
417 return StringHelper::JoinStrings(components, "."); in javaPackage()
426 StringHelper::SplitString(package(), '.', components); in getPackageComponents()
[all …]
DAndroid.bp23 "StringHelper.cpp",
/system/tools/hidl/c2hal/
DDeclaration.cpp40 mName = StringHelper::RTrim(mName, "_t"); in forceCamelCase()
41 mName = StringHelper::ToCamelCase(mName); in forceCamelCase()
45 mName = StringHelper::RTrim(mName, "_t"); in forcePascalCase()
46 mName = StringHelper::ToPascalCase(mName); in forcePascalCase()
50 mName = StringHelper::RTrim(mName, "_t"); in forceUpperSnakeCase()
51 mName = StringHelper::ToUpperSnakeCase(mName); in forceUpperSnakeCase()
DExpression.cpp94 virtual std::string toString(StringHelper::Case atomCase) { in toString()
122 virtual std::string toString(StringHelper::Case atomCase) { in toString()
124 return mIsId ? StringHelper::ToCase(atomCase, mValue) : mValue; in toString()
146 virtual std::string toString(StringHelper::Case atomCase) { in toString()
169 virtual std::string toString(StringHelper::Case atomCase) { in toString()
194 virtual std::string toString(StringHelper::Case atomCase) { in toString()
217 virtual std::string toString(StringHelper::Case atomCase) { in toString()
244 virtual std::string toString(StringHelper::Case atomCase) { in toString()
DExpression.h82 virtual std::string toString(StringHelper::Case atomCase = StringHelper::kNoCase) = 0;
DEnumVarDeclaration.cpp47 out << " = " << mExpression->toString(StringHelper::kUpperSnakeCase); in generateSource()
DType.cpp150 std::string baseName = StringHelper::RTrim(id, "_t"); in getHidlType()
151 ss << StringHelper::ToPascalCase(baseName); in getHidlType()
/system/tools/hidl/utils/include/hidl-util/
DStringHelper.h27 struct StringHelper { struct
83 StringHelper() {} in StringHelper() argument
88 DISALLOW_COPY_AND_ASSIGN(StringHelper);
/system/tools/hidl/
DAnnotation.cpp124 out << StringHelper::JoinStrings(*values, ", "); in dump()
Dhidl-gen_y.yy35 #include <hidl-util/StringHelper.h>
150 if (StringHelper::StartsWith(idstr, "_hidl_")) {
155 if (StringHelper::EndsWith(idstr, "_cb")) {
DInterface.cpp643 if (StringHelper::EndsWith(localName(), "Callback")) { in getVtsType()
DgenerateCpp.cpp86 guard += StringHelper::Uppercase(mPackage.tokenName()); in makeHeaderGuard()
88 guard += StringHelper::Uppercase(baseName); in makeHeaderGuard()
Dmain.cpp1107 guard += StringHelper::Uppercase(packageFQName.tokenName()); in generateExportHeaderForPackage()