.. index:: pair: class; EE::UI::Doc::SyntaxDefinitionManager .. _doxid-class_e_e_1_1_u_i_1_1_doc_1_1_syntax_definition_manager: class EE::UI::Doc::SyntaxDefinitionManager ========================================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class SyntaxDefinitionManager { public: // methods static std::pair :target:`toCPP`(const :ref:`SyntaxDefinition`& def); :ref:`SyntaxDefinition`& :target:`add`(:ref:`SyntaxDefinition`&& syntaxStyle); const :ref:`SyntaxDefinition`& :target:`getPlainDefinition`() const; std::vector`*> :target:`languagesThatSupportExtension`(std::string extension) const; bool :target:`extensionCanRepresentManyLanguages`(std::string extension) const; const :ref:`SyntaxDefinition`& :target:`getByExtension`(const std::string& filePath, bool hFileAsCPP = false) const; const :ref:`SyntaxDefinition`& :target:`getByHeader`(const std::string& header, bool hFileAsCPP = false) const; const :ref:`SyntaxDefinition`& :target:`find`(const std::string& filePath, const std::string& header, bool hFileAsCPP = false); const :ref:`SyntaxDefinition`& :target:`findFromString`(const std::string& str) const; :ref:`SyntaxDefinition`& :target:`getByExtensionRef`(const std::string& filePath); const :ref:`SyntaxDefinition`& :target:`getByLanguageName`(const std::string& name) const; const :ref:`SyntaxDefinition`& :target:`getByLanguageIndex`(const :ref:`Uint32`& index) const; const :ref:`SyntaxDefinition`& :target:`getByLanguageNameInsensitive`(std::string name) const; const :ref:`SyntaxDefinition`& :target:`getByLSPName`(const std::string& name) const; const :ref:`SyntaxDefinition`& :target:`getByLanguageId`(const :ref:`String::HashType`& id) const; :ref:`SyntaxDefinition`& :target:`getByLanguageNameRef`(const std::string& name); std::vector :target:`getLanguageNames`() const; std::vector :target:`getExtensionsPatternsSupported`() const; const :ref:`SyntaxDefinition`* :target:`getPtrByLanguageName`(const std::string& name) const; const :ref:`SyntaxDefinition`* :target:`getPtrByLSPName`(const std::string& name) const; const :ref:`SyntaxDefinition`* :target:`getPtrByLanguageId`(const :ref:`String::HashType`& id) const; bool :target:`loadFromStream`(:ref:`IOStream`& stream, std::vector* addedLangs); bool :target:`loadFromStream`(:ref:`IOStream`& stream); bool :target:`loadFromFile`(const std::string& fpath); bool :target:`loadFromMemory`(const :ref:`Uint8`* data, const :ref:`Uint32`& dataSize); bool :target:`loadFromPack`(:ref:`Pack`* Pack, const std::string& filePackPath); void :target:`loadFromFolder`(const std::string& folderPath); const std::vector<:ref:`SyntaxDefinition`>& :target:`getDefinitions`() const; bool :target:`save`(const std::string& path, const std::vector<:ref:`SyntaxDefinition`>& def = {}); void :target:`setLanguageExtensionsPriority`(const std::map& priorities); const std::map& :target:`getLanguageExtensionsPriority`(); };