Skip to content

Commit aab2708

Browse files
committed
Fix incorrect terminology
1 parent 5b93436 commit aab2708

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ This library makes no attempt to detect or otherwise acknowledge endianness, and
5555
### UTF-64
5656
Sure!
5757
After 63 bits, you'll start to use more than one code unit per code point.
58-
To really take advantage of this, though, you will want to use a custom unsigned numeric type, most likely from the C++ bignum library of your choice.
58+
To really take advantage of this, though, you will want to use a custom unsigned numeric type as the code point type, most likely from the C++ bignum library of your choice.
5959
Just make sure the type you use overloads the proper C++ operators.
6060

6161
### UTF-128, UTF-256, UTF-512, UTF-1024, etc
6262
Sure, I guess?
6363
Does your compiler even have any primitive integer types that large?
64-
Code point types have to be primitive integer types so that they can be passed to [`std::make_unsigned`](http://en.cppreference.com/w/cpp/types/make_unsigned), though I guess you could defenestrate conformance and specialize `std::make_unsigned` on your own types.
64+
Code unit types have to be primitive integer types so that they can be passed to [`std::make_unsigned`](http://en.cppreference.com/w/cpp/types/make_unsigned), though I guess you could defenestrate conformance and specialize `std::make_unsigned` on your own types.
6565
If your compiler has primitive integer types that large or you want to break conformance, go for it.
6666
It _should_ work as long as `sizeof(your_type)` is correct.
6767
I think.
@@ -70,7 +70,7 @@ I think.
7070
If you have a system with one or more primitive integer types that are not powers of two but are still multiples of `CHAR_BIT`, this library will still work.
7171
(For example, I have actually worked on a system with a 24-bit `short long` primitive integer type).
7272
If you have a weird system where `CHAR_BIT` is not `8`, this library should still work.
73-
You only need at least 3 bits per code unit to use UTF-style encoding, though at that point the headers would take up over half of the code points.
73+
You only need at least 3 bits per code unit to use UTF-style encoding, though at that point the headers would take up over half of the code units.
7474
If you have a weirder system where some primitive integer types are not multiples of `CHAR_BIT`, then sorry, you won't be able to use this library, or a C++ compiler for that matter.
7575

7676
## Usage

0 commit comments

Comments
 (0)