1 //===-- string_utils.h ------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef SCUDO_STRING_UTILS_H_
10 #define SCUDO_STRING_UTILS_H_
12 #include "internal_defs.h"
21 explicit ScopedString(uptr MaxLength) : String(MaxLength), Length(0) {
24 uptr length() { return Length; }
25 const char *data() { return String.data(); }
30 void append(const char *Format, va_list Args);
31 void append(const char *Format, ...);
38 void Printf(const char *Format, ...);
42 #endif // SCUDO_STRING_UTILS_H_