Text
Text sits at the boundary of almost every application: it arrives from users and protocols, moves through parsers and validators, and leaves again as formatted or encoded output. Erbsland Core gives these tasks a shared Unicode model, safe owning values, and focused tools for the places where text must be edited or constructed.
Start with Text in Erbsland Core for a guided tour of the domain. It connects the individual topics and helps you find the page that matches the problem you are solving.
- Text in Erbsland Core
- 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
- Converting Text and Scalar Values
- Comparing Whole and Partial Text
- Normalizing Unicode Strings
- Working with Character Sets
- Building Strings Efficiently
- Formatting Structured Text
- Describing Values with Named Format Specifications
- Maintaining Compact Compatibility Specifications
- Recognizing Small Text Patterns
- Converting Strings and Encoded Data
- Encoding Internationalized Names
- 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
- Start with the Way Your Algorithm Reads Text
- Understand the Coordinate Systems
- Keep Parser State in
StringCharReader - Walk Through Every Decoded Character
- Read Sequentially Without Parser State
- Use Indexed Access When a Position Already Matters
- Why UTF-32 Changes the Cost of Indexed Access
- Choose the Simplest Access Pattern That Fits
- Converting Text and Scalar Values
- Comparing Whole and Partial Strings
- Normalizing Unicode Strings
- Working with Character Sets
- Know What One Set Element Represents
- Validate the Encoding Before the Character Policy
- Build Expensive Policies Once and Reuse Them
- Compose Larger Policies from Smaller Sets
- Ask Whether Text Satisfies a Character Policy
- Trim a Policy from the Edges
- Remove Unwanted Characters Throughout the Text
- Transform the Characters Selected by a Set
- Building Strings
- Formatting Text Patterns
- Format Specifications
- Compatibility Format Specifications
- Recognizing Text Patterns
- Converting Strings
- Encoding Internationalized Names