Skip to content
0:00 / 0:00

#c++#unicode#utf-8

CppCon 2014: James McNellis "Unicode in C++"

CppCon

189K subscribers • 123 videos on Hallway • Conference channel

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by James McNellis
  • Linked in the descriptionCppCon/CppCon2014

Intermediate. Assumes working knowledge.

20K views12 years ago1 recommendation

Programming languagesSystems programmingC++

James McNellis explains the fundamentals of Unicode and the state of text encoding support in C++.

cppcon.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2014 -- In some programming languages, text processing is easy. Unfortunately, C++ is not one of those languages. C++ lacks good, built-in support for Unicode, though the situation is starting to improve. This session will begin with a brief overview of text encodings, and an introduction to Unicode and the various Unicode encodings. We'll look at the woeful state of Unicode support in C++98 (or, really, lack thereof), then take a look at the improvements that were made in C++11 and other improvements that have recently been proposed for standardization. We'll finish up with a discussion of several libraries designed to make it easier to work with Unicode in C++, including the widely-used, open-source International Components for Unicode (ICU) library. -- James McNellis is a senior engineer on the Microsoft Visual C++ team, where he is responsible for the Visual C++ C Runtime (CRT) and C Standard Library implementation. He was previously a member of the Microsoft Expression Blend team, developing the XAML designer tools for Windows 8 apps. Prior to joining Microsoft in 2010, he spent several years working on real-time 3-D simulation and robotics projects in the defense industry. James is a prolific contributor on the Stack Overflow programming Q&A website and occasionally writes for the Visual C++ Team Blog. He tweets at @JamesMcNellis and can be found elsewhere online via jamesmcnellis.com. -- Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctf

Why it's here

1 person recommends this

What people say. Recommended as a great introduction to the complexities of handling Unicode in C++.

u/WafflesAreDangerousin r/programming • Recommends

On “Strings in C - what about now, Reddit ?”

…suringly familiar, but I have no idea how you would implement most of these in O(1). I suspect people will abuse str.getAtCodeUnit(n) or the like and end up with O(n\^2) by accident, and not realise this until they pass in a massive string and find it to be dog slow. There's some nice presentations that devle into unicode issues: \* CppCon 2014 [video \* CppCon 2017 [video (By comment's it seems that there's some caveats, but it has a really nice approachable presentation to convay a good baseline intuitive understanding. It also has a lot of examples of how things can go wrong, so take this as reference to what to look out for!) \* CppCon 2019 [video (Has a good overview of the is…