| 45 | } |
| 46 | |
| 47 | static 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 | |
| 55 | static std::string |
| 56 | autoIndentToString( const EE::UI::Doc::TextDocument::AutoIndentConfig& autoIndent ) { |
no outgoing calls
no test coverage detected