You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,13 +55,13 @@ This library makes no attempt to detect or otherwise acknowledge endianness, and
55
55
### UTF-64
56
56
Sure!
57
57
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.
59
59
Just make sure the type you use overloads the proper C++ operators.
60
60
61
61
### UTF-128, UTF-256, UTF-512, UTF-1024, etc
62
62
Sure, I guess?
63
63
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.
65
65
If your compiler has primitive integer types that large or you want to break conformance, go for it.
66
66
It _should_ work as long as `sizeof(your_type)` is correct.
67
67
I think.
@@ -70,7 +70,7 @@ I think.
70
70
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.
71
71
(For example, I have actually worked on a system with a 24-bit `short long` primitive integer type).
72
72
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.
74
74
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.
0 commit comments