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

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEStringCollapseQuotes

.. attention::

   |CPPONLY|

.. oe:function:: OEStringCollapseQuotes

   .. oe:api::

      std::string OEStringCollapseQuotes(const std::string& str,
                                         const std::string& quotes = "\"")

   Replaces all the instance of two consecutive ``quotes`` in ``str``
   with a single instance of that quote. The default is a
   double-quote, the standard for comma-separated-value, CSV,
   files. This is a low-level CSV function, most users can just use
   :oe:func:`OESystem::OEStringCSVJoin` and
   :oe:func:`OESystem::OEStringCSVTokenize`.
