If your interest is in speed alone, then adding UTF_16 might offer options as
well:
FORMAT (enc_flags):
7|6|5|4|3|2|1|0
x x 0 0 1 x x x = UTF_8
x x 0 1 0 x x x = UTF_16
x x 1 0 0 x x x = UTF_32
then:
#define UTF 56
utf_encoding = UTF & enc_flags;
if( utf_encoding ) {
cout << "String is UTF_" << utf_encoding << "\n";
}
(excuse any code errors, I haven't CPLUSPLUSed in awhile)
Grant M.
- Questions about PDD 4: Internal data types Hong Zhang
- Re: Questions about PDD 4: Internal data types Dan Sugalski
- Re: Questions about PDD 4: Internal data types Andy Dougherty
- RE: Questions about PDD 4: Internal data types wiz
- RE: Questions about PDD 4: Internal data types Dan Sugalski
- Re: Questions about PDD 4: Internal data types Nicholas Clark
- Re: Questions about PDD 4: Internal data types Dan Sugalski
- Re: Questions about PDD 4: Internal data types NeonEdge
- Re: Questions about PDD 4: Internal data types Hong Zhang
- Re: Questions about PDD 4: Internal data types Dan Sugalski
