Software Unscripted cover image

Swift and Unicode API Design with Rob Napier

Software Unscripted

CHAPTER

Is Character a Fixed Length Thing?

A character is an extended graphing cluster, which basically means it's like one or more code points that go together. A family emoji can be 25 bytes long. And if you want to index based on that, no problem, but I'm going to have to scan through your string one byte at a time to find, you know, the eighth one of those because they're variable length. There's no possible way to do it in O of one. But with extended graphing clusters and particularly emoji, it's the most common issue.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner