Skip to content

Commit c310e45

Browse files
committed
README.md cosmetics
1 parent 904d769 commit c310e45

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This is the C++11 template based header only library under Windows/Linux/MacOs t
33

44
UTF-8 and UTF-32 (UCS-32) both support 31 bit wide code points `[0‥0x7FFFFFFF]`with no restriction. UTF-16 supports only unicode code points `[0‥0x10FFFF]`, where high `[0xD800‥0xDBFF]` and low `[0xDC00‥0xDFFF]` surrogate regions are prohibited.
55

6-
The maximum UTF-16 symbol size is 2 words (4 bytes, both words should be in the surrogate region). UFT-32 (UCS-32) is always 1 word (4 bytes). UTF-8 has the maximum symbol size (see [conversion table](#conversion-table)):
6+
The maximum UTF-16 symbol size is 2 words (4 bytes, both words should be in the surrogate region). UFT-32 (UCS-32) is always 1 word (4 bytes). UTF-8 has the maximum symbol size (see [conversion table](#utf-8-conversion-table) for details):
77
- 4 bytes for unicode code points
88
- 6 bytes for 31bit code points
99

@@ -54,5 +54,5 @@ Tested on following compilers:
5454
std::is_same<utf_selector_t<decltype(u32)::value_type>, utf_selector_t<decltype(uw)::value_type>>::value, "Fail");
5555
```
5656
57-
## Conversion table
57+
## UTF-8 Conversion table
5858
![UTF-8/32 table](https://upload.wikimedia.org/wikipedia/commons/3/38/UTF-8_Encoding_Scheme.png)

perf/clang_linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ UTF8 ==> UTFW : 0.340444965s (+151.96%)
3232
3333
*** No errors detected
3434
```
35-
*Attention:* the strange results for UTF16 to UTF8 and UTFW to UTF8 convertions. I suppose that there is no input data checking in codecvt library.
35+
**Attention:** the strange results for UTF16 to UTF8 and UTFW to UTF8 convertions. I suppose that there is no input data checking in codecvt library.

perf/clang_mac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ UTF8 ==> UTFW : 0.295663358s (+154.24%)
3232
3333
*** No errors detected
3434
```
35-
*Attention:* the strange results for UTF16 to UTF8 and UTFW to UTF8 convertions. I suppose that there is no input data checking in codecvt library.
35+
**Attention:** the strange results for UTF16 to UTF8 and UTFW to UTF8 convertions. I suppose that there is no input data checking in codecvt library.

perf/gnu_linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ UTF8 ==> UTFW : 0.674670587s (+885.93%)
3232
3333
*** No errors detected
3434
```
35-
*Attention:* the strange results for UTFW to UTF8 convertion. I suppose that there is no input data checking in codecvt library.
35+
**Attention:** the strange results for UTFW to UTF8 convertion. I suppose that there is no input data checking in codecvt library.

0 commit comments

Comments
 (0)