c - PCRE2_CODE_UNIT_WIDTH 不是 8
问题描述
我有以下pcre2
导入,我将其用作一种占位符/默认值:
/* The PCRE2_CODE_UNIT_WIDTH macro must be defined before including pcre2.h.
For a program that uses only one code unit width, setting it to 8, 16, or 32
makes it possible to use generic function names such as pcre2_compile(). */
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
在什么情况下代码宽度不是 8?例如,对于非 asci/utf-8 字符,代码宽度应该设置为 16 还是 8?非 8 位宽度的最常见用法是什么?
解决方案
推荐阅读
- javascript - Zapier - 切片不是有效的功能?
- ios - 使用 clang xcode 9 为 iOS armv7+arm64 编译 C 代码
- java - 用于多种数据类型的 RecyclerView.Adapter
- vim - 为什么在这个 vimscript 中没有设置 '< 和 '>?
- php - 使用 AMPHP 从数组创建迭代器
- python - 使用 cmake 安装 OPENCV 失败。Python.h
- arrays - 在警报中显示数组对象
- apache - 将包括主页在内的所有请求重定向到 /foo
- dns - Tumblr 如何处理自定义域映射?
- database - 如何在firestore中获取setData的ID?