| 845 | } |
| 846 | |
| 847 | extern "C" OPENPGL_DLLEXPORT PGLString pglFieldStatisticsToCSVString(PGLFieldStatistics fieldStatistics) |
| 848 | { |
| 849 | auto *gFieldStatistics = (openpgl::FieldStatistics *)fieldStatistics; |
| 850 | std::string str = gFieldStatistics->toCSVString(); |
| 851 | PGLString pglStr; |
| 852 | pglStr.m_size = str.length() + 1; |
| 853 | pglStr.m_str = new char[pglStr.m_size]; |
| 854 | strcpy(pglStr.m_str, str.c_str()); |
| 855 | return pglStr; |
| 856 | } |
| 857 | |
| 858 | /////////////////////////////////////////////////////////////////////////////// |
| 859 | // String ///////////////////////////////////////////////////////////////////// |
no test coverage detected