mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 06:53:46 +00:00
22 lines
453 B
C++
22 lines
453 B
C++
#include "search/base/text_index/text_index.hpp"
|
|
|
|
#include "base/assert.hpp"
|
|
#include "base/string_utils.hpp"
|
|
|
|
using namespace std;
|
|
|
|
namespace search_base
|
|
{
|
|
string DebugPrint(TextIndexVersion const & version)
|
|
{
|
|
switch (version)
|
|
{
|
|
case TextIndexVersion::V0: return "V0";
|
|
}
|
|
string ret =
|
|
"Unknown TextIndexHeader version: " + strings::to_string(static_cast<uint8_t>(version));
|
|
ASSERT(false, (ret));
|
|
return ret;
|
|
}
|
|
} // namespace search
|