startsWith#

Fully qualified name: omni::extras::startsWith

Defined in omni/extras/StringHelpers.h

inline bool omni::extras::startsWith(
const std::string &str,
const std::string &prefix,
)#

Checks a string to see if it begins with a given prefix.

Parameters:
  • str – The string to check

  • prefix – The possible prefix to check for

Returns:

true if str starts with prefix; false otherwise