MCPcopy Create free account
hub / github.com/SpartanJ/eepp / autoIndentFromString

Function autoIndentFromString

src/tools/ecode/appconfig.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static EE::UI::Doc::TextDocument::AutoIndentConfig autoIndentFromString( const std::string& str ) {
48 if ( str == "none" )
49 return EE::UI::Doc::TextDocument::AutoIndentConfig::None;
50 if ( str == "preserve" )
51 return EE::UI::Doc::TextDocument::AutoIndentConfig::Preserve;
52 return EE::UI::Doc::TextDocument::AutoIndentConfig::Smart;
53}
54
55static std::string
56autoIndentToString( const EE::UI::Doc::TextDocument::AutoIndentConfig& autoIndent ) {

Callers 2

loadMethod · 0.85
loadProjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected