diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-20 09:17:12 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-22 14:04:22 (GMT) |
commit | 301f5356fd1cb6d30f662b9b4071108a378063cd (patch) | |
tree | 16263e48e4728f378204af21c9dcc88978cb1231 /Help/guide/tutorial/Step11/MathFunctions | |
parent | 4cd039b78a955972a9c2b3947f267ce4b93489a0 (diff) | |
download | CMake-301f5356fd1cb6d30f662b9b4071108a378063cd.zip CMake-301f5356fd1cb6d30f662b9b4071108a378063cd.tar.gz CMake-301f5356fd1cb6d30f662b9b4071108a378063cd.tar.bz2 |
cmAlgorithms: Make cmHasPrefix and cmHasSuffix cm::string_view based
Make `cmHasPrefix`, `cmHasSuffix` and `cmStripSuffixIfExists` accept
arguments as `cm::string_view` instead of `const std::string&`.
This lets them accept literal strings without having to allocate a temporary
`std::string`.
Add variants of `cmHasPrefix`, `cmHasSuffix` and `cmStripSuffixIfExists` that
accept a single character as second argument.
Diffstat (limited to 'Help/guide/tutorial/Step11/MathFunctions')
0 files changed, 0 insertions, 0 deletions