commit | 2e16b58b7c72525f78b8aa1eebb7ccd9a0a24512 | [log] [tgz] |
---|---|---|
author | Alex Turbov <i.zaufi@gmail.com> | Mon Jul 01 20:29:20 2024 +0400 |
committer | Brad King <brad.king@kitware.com> | Thu Jul 18 10:29:46 2024 -0400 |
tree | a9ab34ac6a2efc2ff89706381f1f7ff678efa912 | |
parent | ce991188f39c657487bbda88ce450bc9c641248b [diff] |
cmStringAlgorithms: Move generic strings join function to public API Move `cmJoinImpl` from `cmStringAlgorithms.cxx` to the `cmStringAlgorithms.h` as `cmJoinStrings`. Two existing overloads are not suitable for reverse iterators due to the hardcoded type of the first parameter. The signature is similar to the generic (template) `cmJoin`. With `enable_if` "magic", `cmJoinString` could be renamed to `cmJoin` in the future. Also, replace `getJoinedLength` with `std::accumulate`.