From cb81cd27cd1b162c381db4106cb29c4c397146a8 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Apr 2019 08:32:58 +1100 Subject: Backport: Feature [feature-requests:#1272]. Add API to set default fold display text. Backport of changeset 7400:9fcb52fdb307. --- src/UniqueString.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/UniqueString.h') 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; /// Equivalent to strdup but produces a std::unique_ptr allocation to go -- cgit v1.2.3