Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

char8_t and char16_t are dynamic in size?

Here is what I know:

  • UTF-8 is a variable-length character encoding standard used for electronic communication.
    (https://en.wikipedia.org/wiki/UTF-8)
  • Likewise, UTF-16 is a variable-length character encoding.

Here is what I wonder:

  • Are char8_t and char16_t in C++ are dynamic in size too (to fit in the generic behaviour of UTF-8 and UTF-16) ?
  • Will it ever happen that when I assign it a "special" value, it will automatically expand its own size to match?

>Solution :

char8_t and char16_t are dynamic in size?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

No.

Are char8_t and char16_t in C++ are dynamic in size too (to fit in the generic behaviour of UTF-8 and UTF-16) ?

No.

Will it ever happen that when I assign it a "special" value, it will automatically expand its own size to match?

No.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading