Vuo  0.4.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
VuoStringUtilities Class Reference


Functions for dealing with strings.

Static Public Member Functions

static bool beginsWith (string wholeString, string beginning)
 Returns true if wholeString begins with beginning.
static bool endsWith (string wholeString, string ending)
 Returns true if wholeString ends with ending.
static string substrAfter (string wholeString, string beginning)
 Returns the substring of wholeString that follows beginning, or an empty string if wholeString does not begin with beginning.
static string replaceAll (string wholeString, char originalChar, char replacementChar)
 Returns a string constructed by replacing all instances of originalChar with replacementChar in wholeString.
static string transcodeToIdentifier (string str)
 Transforms a string into a valid identifier:

Member Function Documentation

string VuoStringUtilities::transcodeToIdentifier ( string  str)

Transforms a string into a valid identifier:

  • Replace whitespace and '.'s with '_'s
  • Make sure all characters match [A-Za-z0-9_]

The documentation for this class was generated from the following files: