utf8ライブラリ
ライブラリ日本語解説は準備中
ひとことで言うと
utf8は、ロブロックス(Roblox)のライブラリです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):This library provides basic support for UTF-8 encoding.
プロパティ(1)
| 名前と書き方 | 説明 |
|---|---|
charpatternutf8.charpattern: string | The pattern "[%z\x01-\x7F\xC2-\xF4][\x80-\xBF]*", which matches exactly zero or more UTF-8 byte sequences, assuming that the subject is a valid UTF-8 string. |
関数(8)
| 名前と書き方 | 説明 |
|---|---|
charutf8.char(codepoints: Tuple<int>): string | Converts zero or more codepoints to UTF-8 byte sequences. |
codesutf8.codes(str: string): function, string, int | Returns an iterator function that iterates over all codepoints in a given string. |
codepointutf8.codepoint(str: string, i: int, j: int): Tuple<int> | Returns the codepoints (as integers) from all codepoints in a given string. |
lenutf8.len(s: string, i: int, j: int): int | Returns the number of UTF-8 codepoints in a given string. |
offsetutf8.offset(s: string, n: int, i: int): int? | Returns the position (in bytes) where the encoding of the n‑th codepoint of s (counting from byte position i) starts. |
graphemesutf8.graphemes(str: string, i: number, j: number): function | Returns an iterator function that iterates over the grapheme clusters of a given string. |
nfcnormalizeutf8.nfcnormalize(str: string): string | Converts the input string to Normal Form C. |
nfdnormalizeutf8.nfdnormalize(str: string): string | Converts the input string to Normal Form D. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(utf8)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。