Text Strings
Strings carry text through most application code. This chapter starts with safe owning values, then follows the operations used to inspect, search, compare, edit, and match their contents. Start with Text Strings Overview to find the workflow that fits your task.
- Text Strings Overview
- Using Strings as Everyday Values
- Understanding String Attributes
- Transforming Read-only Strings
- Editing One Working Value in Place
- Managing StringEditor Storage
- Finding Text Positions
- Slicing and Splitting Strings
- Accessing Characters and Writing Parsers
- Comparing Whole and Partial Text
- Normalizing Unicode Strings
- Working with Character Sets
- Fuzzy Matching with Edit Distance
- Using Strings
- String Attributes
- Transforming Strings
- Editing Strings in Place
- Managing StringEditor Storage
- Finding Text Positions
- Slicing and Splitting Strings
- Character Access and Parsing of Strings
- Choosing Character Iteration, Parsing, or Indexed Access
- Byte Indexes and Code-Point Indexes
- Parsing with
StringCharReader - Iterating over Decoded Characters
- Sequential Character Reading with Native Indexes
- Indexed Character Access
- Why UTF-32 Changes the Cost of Indexed Access
- Character Access Methods and Their Costs
- Comparing Whole and Partial Strings
- Normalizing Unicode Strings
- Working with Character Sets
- Fuzzy Matching with Edit Distance