Home
last modified time | relevance | path

Searched refs:CamelCaseToSnakeCase (Results 1 – 4 of 4) sorted by relevance

/system/tools/sysprop/tests/
DCommonTest.cpp22 EXPECT_EQ(CamelCaseToSnakeCase("CurrentAPIVersion"), "current_api_version"); in TEST()
23 EXPECT_EQ(CamelCaseToSnakeCase("CurrentAPI"), "current_api"); in TEST()
24 EXPECT_EQ(CamelCaseToSnakeCase("APIVersion"), "api_version"); in TEST()
25 EXPECT_EQ(CamelCaseToSnakeCase("API"), "api"); in TEST()
26 EXPECT_EQ(CamelCaseToSnakeCase("API2"), "api2"); in TEST()
27 EXPECT_EQ(CamelCaseToSnakeCase("SomeRandomCamelCase"), in TEST()
29 EXPECT_EQ(CamelCaseToSnakeCase("snake_case"), "snake_case"); in TEST()
30 EXPECT_EQ(CamelCaseToSnakeCase("Strange_Camel_Case"), "strange_camel_case"); in TEST()
/system/tools/sysprop/include/
DCommon.h35 std::string CamelCaseToSnakeCase(const std::string& str);
/system/tools/sysprop/
DRustGen.cpp200 CamelCaseToSnakeCase(ApiNameToIdentifier(prop.api_name())); in GenerateRustSource()
DCommon.cpp377 std::string CamelCaseToSnakeCase(const std::string& s) { in CamelCaseToSnakeCase() function