String Theory - KDAB

[Pages:31]String Theory

Thiago Macieira

Qt Developer Days 2014

Who am I?

2

How many string classes does Qt have?

? Present

? Non-Qt

? QString ? QLatin1String ? QByteArray ? QStringLiteral (not a class!) ? QStringRef ? QVector

? Past

? std::string ? std::wstring ? std::u16string / std::u32string ? Character literals ("", L"", u"", U"")

? QCString / Q3CString

3

Character types, charsets, and codecs

4

What's a charset?

5

Legacy encodings

? 6-bit encodings ? EBCDIC ? UTF-1

6

Examples modern encodings

? Fixed width

? Variable width

? US-ASCII (ANSI X.3.4-1986) ? Most DOS and Windows

codepages ? ISO-8859 family ? KOI8-R, KOI8-U ? UCS-2 ? UTF-32 / UCS-4

? UTF-7 ? UTF-8, CESU-8 ? UTF-16 ? GB-18030

? Stateful

? Shift-JIS ? EUC-JP ? ISO-2022

7

Unicode & ISO/IEC 10646

? Unicode Consortium

? Character maps, technical reports

? The Common Locale Data Repository

8

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download