-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/bbannier/issue-1788'
- Loading branch information
Showing
37 changed files
with
862 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.13.0-dev.2 | ||
1.13.0-dev.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2020-2023 by the Zeek Project. See LICENSE for details. | ||
|
||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
#include <hilti/rt/extension-points.h> | ||
#include <hilti/rt/util.h> | ||
|
||
namespace hilti::rt { | ||
|
||
namespace unicode { | ||
|
||
/* When processing unicode, how to handle invalid data not representing unicode codepoints. */ | ||
HILTI_RT_ENUM_WITH_DEFAULT(DecodeErrorStrategy, IGNORE, | ||
IGNORE, // skip data | ||
REPLACE, // replace with a place-holder | ||
STRICT // throw a runtime error | ||
); | ||
|
||
/** For bytes decoding, which character set to use. */ | ||
HILTI_RT_ENUM(Charset, Undef, UTF8, UTF16LE, UTF16BE, ASCII); | ||
|
||
constexpr uint32_t REPLACEMENT_CHARACTER = 0x0000FFFD; | ||
|
||
} // namespace unicode | ||
|
||
namespace detail::adl { | ||
std::string to_string(const unicode::DecodeErrorStrategy& x, adl::tag /*unused*/); | ||
std::string to_string(const unicode::Charset& x, adl::tag /*unused*/); | ||
} // namespace detail::adl | ||
|
||
} // namespace hilti::rt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.