Skip to main content

Module string_utils

Module string_utils 

Source
Expand description

String utilities for performance optimization

This module provides helper functions and traits for efficient string operations including capacity pre-allocation and joining operations.

Traits§

StringBuilder
Extension trait for efficient string building

Functions§

estimate_csv_row_capacity
Estimate CSV row string length based on number of columns
estimate_json_array_capacity
Estimate JSON array string length
join_cell_reference
Join cell references efficiently (e.g., [“A”, “1”] -> “A1”)
join_with_capacity
Join strings with a separator, pre-allocating based on estimated total size
string_with_capacity
Pre-allocate a String with estimated capacity