| 1610 | |
| 1611 | template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER> |
| 1612 | SI_Error CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::FindFileComment( |
| 1613 | SI_CHAR *&a_pData, bool a_bCopyStrings) { |
| 1614 | // there can only be a single file comment |
| 1615 | if (m_pFileComment) { |
| 1616 | return SI_OK; |
| 1617 | } |
| 1618 | |
| 1619 | // Load the file comment as multi-line text, this will modify all of |
| 1620 | // the newline characters to be single \n chars |
| 1621 | if (!LoadMultiLineText(a_pData, m_pFileComment, NULL, false)) { |
| 1622 | return SI_OK; |
| 1623 | } |
| 1624 | |
| 1625 | // copy the string if necessary |
| 1626 | if (a_bCopyStrings) { |
| 1627 | SI_Error rc = CopyString(m_pFileComment); |
| 1628 | if (rc < 0) |
| 1629 | return rc; |
| 1630 | } |
| 1631 | |
| 1632 | return SI_OK; |
| 1633 | } |
| 1634 | |
| 1635 | template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER> |
| 1636 | bool CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::FindEntry( |
nothing calls this directly
no outgoing calls
no test coverage detected