UtilsLite
Utilities for C++ programming
Loading...
Searching...
No Matches
C++ Utilities

A collection of utility functions and classes. More...

Classes

class  Utils::Tokenizer
 A utility class for tokenizing strings. More...
 

Functions

void Utils::split_string (string const &str, string const &sep, vector< string > &arr)
 

Detailed Description

A collection of utility functions and classes.

This module provides various helper functions and classes designed to facilitate common programming tasks. The utilities included in this group aim to improve code reusability and maintainability by providing generic and widely applicable functionalities.

Function Documentation

◆ split_string()

void Utils::split_string ( string const & str,
string const & sep,
vector< string > & arr )

Splits a string into tokens based on specified delimiters.

This function takes an input string and splits it into a vector of tokens, using the specified separators to identify where to split the string.

Parameters
strThe input string to split.
sepA string containing delimiter characters.
arrA vector that will be filled with the resulting tokens.
Note
The resulting tokens are stored in the provided vector, and the vector will be resized to accommodate all tokens extracted from the input string.