diff options
author | Neil <nyamatongwe@gmail.com> | 2019-04-05 08:32:58 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-04-05 08:32:58 +1100 |
commit | 006b224af96d10452655ecced49ba3859c1d62ab (patch) | |
tree | 3fc3107e8819d4955eaf6ca325098d883d914c5f /src/UniqueString.h | |
parent | a5b810a701d3dd4b9b717d5ba036aef6d7f34445 (diff) | |
download | scintilla-mirror-006b224af96d10452655ecced49ba3859c1d62ab.tar.gz |
Feature [feature-requests:#1272]. Add API to set default fold display text.
Diffstat (limited to 'src/UniqueString.h')
-rw-r--r-- | src/UniqueString.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/UniqueString.h b/src/UniqueString.h index 18c31283e..8d95cb1ab 100644 --- a/src/UniqueString.h +++ b/src/UniqueString.h @@ -11,6 +11,10 @@ namespace Scintilla { +constexpr bool IsNullOrEmpty(const char *text) noexcept { + return text == nullptr || *text == '\0'; +} + using UniqueString = std::unique_ptr<const char[]>; /// Equivalent to strdup but produces a std::unique_ptr<const char[]> allocation to go |