//! Helper utilities for string operations.
//!
//! This module provides utility functions for:
//! - String manipulation and padding
//!
/// Pads a string to a specified length with a given character.
///
/// Extends the input string by appending the specified filler character until
/// the string reaches the desired length. If the string is already longer than
/// or equal to the specified length, it remains unchanged.
///
/// # Arguments
///
/// * `s` - The string to enhance/pad
/// * `length` - The desired minimum length of the string
/// * `filler` - The character to use for padding
///
/// # Returns
///
/// The padded string
///
/// # Examples
///
/// ```
/// # use your_crate::helper::enhance_string;
/// let result = enhance_string("hello".to_string(), 10, '*');
/// assert_eq!(result, "hello*****");
///
/// let unchanged = enhance_string("already_long".to_string(), 5, '-');
/// assert_eq!(unchanged, "already_long");
/// ```
#[must_use]
pub fn enhance_string(mut s: String, length: usize, filler: char) -> String {
    while s.len() < length {
        s.push(filler);
    }
    s
}
