MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ToTitle

Function ToTitle

tensorflow/cc/framework/cc_op_gen.cc:104–111  ·  view source on GitHub ↗

Converts: some_name_xyz to: Some Name Xyz

Source from the content-addressed store, hash-verified

102// Converts: some_name_xyz
103// to: Some Name Xyz
104string ToTitle(const string& name) {
105 string title = name;
106 for (int i = 0; i < title.size(); ++i) {
107 if (title[i] == '_') title[i] = ' ';
108 }
109 str_util::TitlecaseString(&title, " ");
110 return title;
111}
112
113// Change: Into:
114// ABC /// ABC

Callers 1

StartFilesFunction · 0.85

Calls 2

TitlecaseStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected