carb::tokens::resolveString

Defined in carb/tokens/TokensUtils.h

inline std::string carb::tokens::resolveString(const ITokens *tokens, const char *str, ResolveFlags resolveFlags = kResolveFlagNone, ResolveResult *resolveResult = nullptr)

Helper for resolving a token string.

The resolve result (resolve code) is placed in the optional parameter.

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

  • str – string for token resolution (passing a null pointer will result in an error)

  • resolveFlags – flags that modify token resolution process

  • resolveResult – optional parameter for receiving resulting resolve code

Returns

true if the operation was successful false otherwise