#define UTILS_H
#include "exceptions.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/scoped_restore.h"
#include <chrono>
+struct completion_match_for_lcd;
+class compiled_regex;
+
extern void initialize_utils (void);
/* String utilities. */
const ui_file_style &style,
struct ui_file *stream);
-/* Reset the terminal style to the default, if needed. */
+/* Like fputs_styled, but uses highlight_style to highlight the
+ parts of STR that match HIGHLIGHT. */
-extern void reset_terminal_style (struct ui_file *stream);
+extern void fputs_highlighted (const char *str, const compiled_regex &highlight,
+ struct ui_file *stream);
-/* Return true if ANSI escapes can be used on STREAM. */
+/* Reset the terminal style to the default, if needed. */
-extern bool can_emit_style_escape (struct ui_file *stream);
+extern void reset_terminal_style (struct ui_file *stream);
/* Display the host ADDR on STREAM formatted as ``0x%x''. */
extern void gdb_print_host_address_1 (const void *addr, struct ui_file *stream);