MCPcopy Create free account
hub / github.com/ImageEngine/cortex / toSpaced

Method toSpaced

src/IECore/CamelCase.cpp:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38{
39
40std::string CamelCase::toSpaced( const std::string &camelCase, Caps caps )
41{
42 std::vector<std::string> words;
43 split( camelCase, std::back_insert_iterator<std::vector<std::string> >( words ) );
44 return join( words.begin(), words.end(), caps, " " );
45}
46
47std::string CamelCase::fromSpaced( const std::string &spaced, Caps caps )
48{

Callers 1

testToSpacedMethod · 0.80

Calls 4

splitFunction · 0.85
joinFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

testToSpacedMethod · 0.64