/usr/include/ui-utilcpp/CharsetMagic.hpp is in libui-utilcpp-dev 1.8.3-3.
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 | /**
* @file
*/
#ifndef UI_UTIL_CHARSETMAGIC_HPP
#define UI_UTIL_CHARSETMAGIC_HPP
// STDC++
#include <string>
namespace UI {
namespace Util {
namespace CharsetMagic {
/** @name Guess encoding of data in buffer using len sample size.
*
* If no encoding could be guessed, this returns an empty string.
* @{ */
std::string guess(char const * const buf, size_t const & len);
std::string guess(std::string const & buf, std::string::size_type const & len=std::string::npos);
/** @} */
}}}
#endif
|