Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code unit definition in Overview.md #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions proposals/stringref/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ find good compromises are "minimal" and "viable".
- *unicode scalar value*: A codepoint that is not a surrogate.
- *character*: An imprecise concept that we try to avoid in this
document.
- *code unit*: An indivisible unit of an encoded unicode scalar value.
For UTF-8 encodings, an integer in the range [0,0xFF] (a byte); for
UTF-16 encodings, an integer in the range [0,0xFFFF]; for UTF-32,
the unicode scalar value itself.
- *code unit*: The minimal bit combination that can represent a unit of
encoded text for processing or interchange. For UTF-8 encodings, an
integer in the range [0,0xFF] (a byte); for UTF-16 encodings, an
integer in the range [0,0xFFFF]; for UTF-32, the codepoint value.
- *high surrogate*: A surrogate in the range [0xD800,0xDBFF].
- *low surrogate*: A surrogate which is not a high surrogate.
- *surrogate pair*: A sequence of a *high surrogate* followed by a *low
Expand Down