resolveString#

Fully qualified name: carb::tokens::resolveString

Defined in carb/tokens/TokensUtils.h

inline omni::expected<omni::string, ResolveError> carb::tokens::resolveString(
const ITokens *tokens,
carb::cpp::string_view str,
ResolveFlags resolveFlags = kResolveFlagNone,
)#

Helper for resolving a token string using the v2.0 interface.

This function returns an expected type that contains either the resolved string on success, or a ResolveError error code on failure.

Template Parameters:

ReturnString – The string type to return (e.g., omni::string, std::string). Defaults to omni::string.

Parameters:
  • tokens – tokens interface (passing a null pointer will result in an error)

  • str – string for token resolution

  • resolveFlags – flags that modify token resolution process

Returns:

expected containing the resolved string on success, or ResolveError on failure