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

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEStringCSVJoin

.. attention::

   |CPPONLY|

.. oe:function:: OEStringCSVJoin

   .. oe:api::

      std::string OEStringCSVJoin(const std::vector<std::string>& fields,
                                  char delim = ',', char quote = '"')

   Returns a string containing all the values of ``fields`` in the
   comma-separated-value, CSV, format specified by `RFC 4180
   <http://tools.ietf.org/html/rfc4180>`_. The fields will only be
   quoted and escaped if necessary to avoid excess file size. The
   delimiter and quoting character can be changed to alternative
   characters, e.g., a tab delimiter for tab separated files.
