Move the official stdlib text modules to their unique source authority and freeze the bundle-root paths (std:text, std:text/utf8). text.utf8编码 becomes a thin wrapper over the single UTF-8 implementation in text/utf8.mq.md. Carry the pre-migration product assertions into component-owned cases with the baseline observation terminal values, plus an explicit-input test entry point (MARQDO_BIN + MARQDO_STDLIB_DIR). No parser, host or CLI change. Refs cflmy/marqdo#9, cflmy/marqdo-std-text#1
14 lines
225 B
Markdown
14 lines
225 B
Markdown
---
|
|
import:
|
|
utf8: "./text/utf8.mq.md"
|
|
---
|
|
|
|
# @exec text
|
|
## utf8编码
|
|
|
|
`params(文本, 内存, 基址)`
|
|
|
|
把 Unicode 标量序列按 UTF-8 写入 Memory,返回字节长度。
|
|
|
|
`return utf8.编码(文本, 内存, 基址)`
|