MCPcopy Create free account
hub / github.com/brofield/simpleini / FindFileComment

Method FindFileComment

SimpleIni.h:1612–1633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1610
1611template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>
1612SI_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
1635template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>
1636bool CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::FindEntry(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected