MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / MakeScreamingCamel

Function MakeScreamingCamel

native/thirdpart/flatbuffers/idl_parser.cpp:111–120  ·  view source on GitHub ↗

Convert an underscore_based_identifier in to screaming snake case.

Source from the content-addressed store, hash-verified

109
110// Convert an underscore_based_identifier in to screaming snake case.
111std::string MakeScreamingCamel(const std::string &in) {
112 std::string s;
113 for (size_t i = 0; i < in.length(); i++) {
114 if (in[i] != '_')
115 s += CharToUpper(in[i]);
116 else
117 s += in[i];
118 }
119 return s;
120}
121
122void DeserializeDoc(std::vector<std::string> &doc,
123 const Vector<Offset<String>> *documentation) {

Callers

nothing calls this directly

Calls 2

CharToUpperFunction · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected