diff options
author | 2023-04-21 22:28:12 +0200 | |
---|---|---|
committer | 2023-04-21 13:28:12 -0700 | |
commit | e972d832155b0c3e91f26c287f7f23037e17f6de (patch) | |
tree | 25d034efaf9cc766bf55dd5702ae5bfc98abe237 /Source/ablastr/utils/TextMsg.H | |
parent | 7170d1b45c5092c060655ec216e4e56be74b3edb (diff) | |
download | WarpX-e972d832155b0c3e91f26c287f7f23037e17f6de.tar.gz WarpX-e972d832155b0c3e91f26c287f7f23037e17f6de.tar.zst WarpX-e972d832155b0c3e91f26c287f7f23037e17f6de.zip |
move StringUtils.H to ablastr (#3864)
Diffstat (limited to 'Source/ablastr/utils/TextMsg.H')
-rw-r--r-- | Source/ablastr/utils/TextMsg.H | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Source/ablastr/utils/TextMsg.H b/Source/ablastr/utils/TextMsg.H index a36b39364..9dc55cac6 100644 --- a/Source/ablastr/utils/TextMsg.H +++ b/Source/ablastr/utils/TextMsg.H @@ -12,22 +12,7 @@ #include <vector> -namespace ablastr::utils -{ - /** \brief This function performs automatic text wrapping on a string, - * returning an array of strings each not exceeding the maximum line length - * (unless the text contains a word exceeding the maximum line length). - * - * @param[in] text the string containing the text to be wrapped - * @param[in] max_line_length the maximum line length - * @return an std::vector containing the lines of the wrapped text - */ - std::vector< std::string > - automatic_text_wrap ( - const std::string& text, - const int max_line_length); - -namespace TextMsg +namespace ablastr::utils::TextMsg { /** \brief This function formats a text message as an error message, * adding the '### ERROR: ' prefix and (by default) performing text wrapping @@ -67,8 +52,7 @@ namespace TextMsg void Assert (const char *ex, const char *file, const int line, const std::string &msg); -} // namespace TextMsg -} // namespace ablastr::utils +} // namespace ablastr::utils::TextMsg #define ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE(EX,MSG) (EX)?((void)0) : ablastr::utils::TextMsg::Assert( # EX , __FILE__, __LINE__ , MSG) |