diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-19 00:36:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-19 14:45:59 +0100 |
commit | 4b900bc10038e0b08cdb1eec5adc12275e40e066 (patch) | |
tree | 2f8ec51289a28ddae71cb250ef896da0f6353d18 /.clang-tidy | |
parent | 25504f6a1b8e37c3da36845a27441cc5aba67f0c (diff) | |
download | serenity-4b900bc10038e0b08cdb1eec5adc12275e40e066.zip |
AK: Add fast path in String::trim() and String::trim_whitespace()
If the trimmed string would be the entire string, just return *this
instead of creating a new StringImpl.
Diffstat (limited to '.clang-tidy')
0 files changed, 0 insertions, 0 deletions