| 2679 | |
| 2680 | template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER> |
| 2681 | bool CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::OutputMultiLineText( |
| 2682 | OutputWriter &a_oOutput, Converter &a_oConverter, |
| 2683 | const SI_CHAR *a_pText) const { |
| 2684 | const SI_CHAR *pEndOfLine; |
| 2685 | SI_CHAR cEndOfLineChar = *a_pText; |
| 2686 | while (cEndOfLineChar) { |
| 2687 | // find the end of this line |
| 2688 | pEndOfLine = a_pText; |
| 2689 | for (; *pEndOfLine && *pEndOfLine != '\n'; ++pEndOfLine) /*loop*/ |
| 2690 | ; |
| 2691 | cEndOfLineChar = *pEndOfLine; |
| 2692 | |
| 2693 | const std::basic_string<SI_CHAR> line( |
| 2694 | a_pText, static_cast<size_t>(pEndOfLine - a_pText)); |
| 2695 | if (!a_oConverter.ConvertToStore(line.c_str())) { |
| 2696 | return false; |
| 2697 | } |
| 2698 | a_pText += (pEndOfLine - a_pText) + 1; |
| 2699 | a_oOutput.Write(a_oConverter.Data()); |
| 2700 | a_oOutput.Write(SI_NEWLINE_A); |
| 2701 | } |
| 2702 | return true; |
| 2703 | } |
| 2704 | |
| 2705 | template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER> |
| 2706 | bool CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::Delete( |
nothing calls this directly
no test coverage detected