载入中...
搜索中...
未找到
Utf8Validation.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
7#include <cstdint>
8#include <string_view>
9
10namespace eve {
11
13enum class Utf8NullPolicy : std::uint8_t { Allow, Reject };
14
22[[nodiscard]] EVENGINE_API_FOUNDATION bool isValidUtf8(std::string_view text,
23 Utf8NullPolicy nullPolicy = Utf8NullPolicy::Allow) noexcept;
24
25} // namespace eve
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
std::string text
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
bool isValidUtf8(std::string_view text, Utf8NullPolicy nullPolicy) noexcept
Validate shortest-form UTF-8, Unicode scalar range and optional NUL exclusion.
Utf8NullPolicy
Policy for embedded U+0000 in otherwise valid UTF-8 text.