Next:
Motivation: What Is Str
Up:
Str Class Documentation
Previous:
Str Class Documentation
Contents
Motivation: What Is Str And Why Should I Use It?
Benchmarks
Str Internals
Flags in size_and_flags
Design Trade-offs
A Quick Introduction
Standard 'Hello World' Program
Stack-based allocation
Basic Str Overview
Allocation Options
Heap-based string data
Stack-based string data
Statically-Allocated string data
Other options
Resizing and Compacting Strings
char* Conversions
Str Indexing
Constant char*
Non-Constant char*: attach() and detach()
attach() constructor
char* Methods
Handling I/O
Parsing and Formatting
Parsing Groups
Simple Tests
Adding And Removing Data
Extracting Substrings
Whitespace Functions
getAllTokens
Find & Replace
Formatting
format
Performance Tuning
Algorithm
Heap Allocation
Extending Str
Resize
Design Templates
Making Changes While Getting Updates
Design Trade-offs
Embedding Flags in Length
Embedding buff_size in data
Moving size_and_flags inside data
C vs C++ interface
Mutable vs Immutable Strings
Operator Overload Choices
Pre-padding
2007-05-05