For Agents | Documentation index: https://create.roblox.com/docs/llms.txt | Engine API index: https://create.roblox.com/docs/reference/engine/llms.txt
学习
库
/
utf8
中文(简体)
反馈
引擎库
utf8
*
此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按
此处
。
摘要
职能
char
(
codepoints:
Tuple
<
number
>
)
:
string
codes
(
str:
string
)
:
function
,
string
,
number
codepoint
(
str:
string
,
i:
number
,
j:
number
)
:
Tuple
<
number
>
len
(
s:
string
,
i:
number
,
j:
number
)
:
number
offset
(
s:
string
,
n:
number
,
i:
number
)
:
number
?
graphemes
(
str:
string
,
i:
number
,
j:
number
)
:
function
nfcnormalize
(
str:
string
)
:
string
nfdnormalize
(
str:
string
)
:
string
属性
charpattern
:
string
API 参考
职能
char
utf8.char
(
codepoints
:
Tuple
<
number
>
)
:
string
参数
codepoints
:
Tuple
<
number
>
返回
string
提供反馈
codes
utf8.codes
(
str
:
string
)
:
function
,
string
,
number
参数
str
:
string
返回
function
,
string
,
number
提供反馈
codepoint
utf8.codepoint
(
str
:
string
,
i
:
number
,
j
:
number
)
:
Tuple
<
number
>
参数
str
:
string
i
:
number
默认值:1
j
:
number
默认值:i
返回
Tuple
<
number
>
提供反馈
len
utf8.len
(
s
:
string
,
i
:
number
,
j
:
number
)
:
number
参数
s
:
string
i
:
number
默认值:1
j
:
number
默认值:-1
返回
number
提供反馈
offset
utf8.offset
(
s
:
string
,
n
:
number
,
i
:
number
)
:
number
?
参数
s
:
string
n
:
number
i
:
number
默认值:1
返回
number
?
提供反馈
graphemes
utf8.graphemes
(
str
:
string
,
i
:
number
,
j
:
number
)
:
function
参数
str
:
string
i
:
number
j
:
number
返回
function
提供反馈
nfcnormalize
utf8.nfcnormalize
(
str
:
string
)
:
string
参数
str
:
string
返回
string
提供反馈
nfdnormalize
utf8.nfdnormalize
(
str
:
string
)
:
string
参数
str
:
string
返回
string
提供反馈
属性
charpattern
utf8.charpattern
:
string
提供反馈
跳转到
▼
utf8
摘要
职能
属性
职能
char()
codes()
codepoint()
len()
offset()
graphemes()
nfcnormalize()
nfdnormalize()
属性
charpattern
中文(简体)
反馈
©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。
条款
·
隐私政策
·
辅助功能
·
支持
中文(简体)