/usr/include/lexertl/narrow.hpp is in libpuma-dev 1:2.2+git20170823-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | // narrow.hpp
// Copyright (c) 2015 Ben Hanson (http://www.benhanson.net/)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef LEXERTL_NARROW_HPP
#define LEXERTL_NARROW_HPP
#include <sstream>
namespace lexertl
{
template<typename char_type>
void narrow(const char_type *str_, std::ostringstream &ss_)
{
while (*str_)
{
// Safe to simply cast to char.
// when string only contains ASCII.
ss_ << static_cast<char>(*str_++);
}
}
}
#endif
|