| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include <cstdlib> | ||
| 2 | #include <iostream> | ||
| 3 | #include <string> | ||
| 4 | #include <text_conversion_constexpr.h> | ||
| 5 | |||
| 6 | ✗ | int main() | |
| 7 | { | ||
| 8 | ✗ | std::string input; | |
| 9 | while (true) | ||
| 10 | { | ||
| 11 | ✗ | std::cout << "Enter a text to process or \"exit\" to end the program: "; | |
| 12 | |||
| 13 | ✗ | std::getline(std::cin, input); | |
| 14 | |||
| 15 | ✗ | if (input == "exit") | |
| 16 | ✗ | break; | |
| 17 | |||
| 18 | ✗ | text_conversion_constexpr::convert_to_title_case(input); | |
| 19 | |||
| 20 | ✗ | std::cout << input << std::endl; | |
| 21 | } | ||
| 22 | |||
| 23 | ✗ | std::cout << "end of program" << std::endl; | |
| 24 | |||
| 25 | ✗ | return EXIT_SUCCESS; | |
| 26 | ✗ | } | |
| 27 |