/usr/include/kytea/kytea-util.h is in libkytea-dev 0.4.6+dfsg-2.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 | #ifndef KYTEA_UTIL__
#define KYTEA_UTIL__
// #include <iostream>
#include <vector>
#include <stdexcept>
#include <sstream>
namespace kytea {
#define THROW_ERROR(msg) do { \
std::ostringstream oss; \
oss << msg; \
throw std::runtime_error(oss.str()); } \
while (0);
template <class T>
void checkPointerEqual(const T* lhs, const T* rhs);
// Vector equality checking function
template <class T>
void checkValueVecEqual(const std::vector<T> & a, const std::vector<T> & b);
// Vector equality checking with null pointers
template <class T>
void checkValueVecEqual(const std::vector<T> * a, const std::vector<T> * b);
// Vector equality checking function
template <class T>
void checkPointerVecEqual(const std::vector<T*> & a, const std::vector<T*> & b);
// Vector equality checking with null pointers
template <class T>
void checkPointerVecEqual(const std::vector<T*> * a, const std::vector<T*> * b);
};
#endif // KYTEA_UTIL__
|