pstore2
quoted.hpp
Go to the documentation of this file.
1 //===- include/pstore/support/quoted.hpp ------------------*- mode: C++ -*-===//
2 //* _ _ *
3 //* __ _ _ _ ___ | |_ ___ __| | *
4 //* / _` | | | |/ _ \| __/ _ \/ _` | *
5 //* | (_| | |_| | (_) | || __/ (_| | *
6 //* \__, |\__,_|\___/ \__\___|\__,_| *
7 //* |_| *
8 //===----------------------------------------------------------------------===//
9 //
10 // Part of the pstore project, under the Apache License v2.0 with LLVM Exceptions.
11 // See https://github.com/SNSystems/pstore/blob/master/LICENSE.txt for license
12 // information.
13 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
14 //
15 //===----------------------------------------------------------------------===//
18 
19 #ifndef PSTORE_SUPPORT_QUOTED_HPP
20 #define PSTORE_SUPPORT_QUOTED_HPP
21 
22 #include <iomanip>
23 
24 #include "pstore/support/gsl.hpp"
25 
26 namespace pstore {
27 
32  inline auto quoted (gsl::czstring const str) { return std::quoted (str, '"', '\0'); }
33 
38  inline auto quoted (std::string const & str) { return std::quoted (str, '"', '\0'); }
39 
40 } // end namespace pstore
41 
42 #endif // PSTORE_SUPPORT_QUOTED_HPP
Definition: nonpod2.cpp:40
auto quoted(gsl::czstring const str)
Wraps quotation marks around a string for presentation to the user.
Definition: quoted.hpp:32