.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

.. attention::

   |PRELIMINARY-API|

.. oe:function:: OEStringToMonomerType

   .. oe:language:: c++ java csharp

      .. oe:api::

         unsigned OEStringToMonomerType(const std::string &)

   .. oe:language:: python

      .. oe:api:: python

         OEStringToMonomerType(arg1: str) -> int

   Converts a string into a constant in the :oe:constns:`OEChem::OEMonomerType` namespace.
   Returns :oe:const:`OEChem::OEMonomerType::Undefined`, if the string
   does not represent any of the specific monomer type. 

   .. seealso::

      * :oe:constns:`OEChem::OEMonomerType` namespace
      * :oe:func:`OEChem::OEMonomerTypeToString` function