.. oe:namespace:: OEIUPAC

.. meta::
   :keywords: OEReorderIndexName

.. oe:function:: OEReorderIndexName

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

      .. oe:api::

         std::string OEReorderIndexName(const char* ptr)

   .. oe:language:: python

      .. oe:api:: python

         OEReorderIndexName(ptr: str) -> str

   Attempt to reorder the specified permuted index name. This permute
   strings such as "benzene, chloro-" into the form "chloro-benzene"
   which can then be processed by the :oe:func:`OEIUPAC::OEParseIUPACName`
   function.

   This function returns an empty string (or the original input string)
   if its argument is not recognized as a permuted index name.
