|
Infinity Engine v0.6.20
C++ API Documentation
|
Utility functions for string manipulation and parsing. More...
#include <StringUtils.hpp>
Public Types | |
| enum | ExecutableNameDelineation { LAST_PERIOD , DOUBLE_COLON } |
| Specifies how to split executable/component full names. More... | |
Static Public Member Functions | |
| static std::string | combineExecutableGroupName (const std::string &group, const std::string &name) |
| Combines group and name into a full executable identifier. | |
| static std::array< std::string, 2 > | splitExecutableFullname (std::string executableFullName, ExecutableNameDelineation delineation=LAST_PERIOD) |
| Splits a full executable name into group and name parts. | |
| static std::vector< std::string > | split (std::string &str, char delimiter) |
| Splits a string by a single character delimiter. | |
| static std::vector< std::string > | split (std::string &str, std::string &delimiter) |
| Splits a string by a multi-character delimiter. | |
Utility functions for string manipulation and parsing.
StringUtils provides common string operations used throughout the Infinity Engine, with particular focus on parsing component identifiers and splitting delimited strings. These utilities are primarily used for handling ProceduralComponent naming conventions and configuration parsing.
Key functionality:
|
static |
Combines group and name into a full executable identifier.
Creates a fully qualified name by joining group and name with a period. Used for generating ComponentID strings and executable identifiers.
| group | The group/namespace part (e.g., "MyCompany.Components"). |
| name | The name part (e.g., "MeshGenerator"). |
|
static |
Splits a string by a single character delimiter.
Parses a string into substrings separated by the specified delimiter character.
| str | String to split. |
| delimiter | Character to split on. |
|
static |
Splits a string by a multi-character delimiter.
Parses a string into substrings separated by the specified delimiter string.
| str | String to split. |
| delimiter | String delimiter to split on. |
|
static |
Splits a full executable name into group and name parts.
Parses a fully qualified executable name into its constituent group and name components using the specified delineation strategy.
| executableFullName | The full name to split (e.g., "Group.SubGroup.Name"). |
| delineation | How to split the name (LAST_PERIOD or DOUBLE_COLON). |