Vuo  0.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Typedefs | Functions

Description

A zero-terminated UTF-8 string.

Typedefs

typedef const char * VuoString
 A zero-terminated UTF-8 string.
 

Functions

VuoString VuoString_valueFromString (const char *initializer)
 Creates a new VuoString from the UTF-8 C string initializer.
 
char * VuoString_stringFromValue (const VuoString value)
 Creates a new UTF-8 C string from value.
 
char * VuoString_summaryFromValue (const VuoString value)
 Creates a new double-quoted UTF-8 C string from value, or, if it's more than 32 characters long, creates an aposiopesis.
 
size_t VuoString_length (const VuoString string)
 Returns the number of UTF-8 characters in the string.
 
const char * VuoString_substring (const VuoString string, size_t startIndex, size_t length)
 Returns the substring of string starting at index startIndex and spanning length UTF-8 characters.
 

Function Documentation

const char* VuoString_substring ( const VuoString  string,
size_t  startIndex,
size_t  length 
)

Returns the substring of string starting at index startIndex and spanning length UTF-8 characters.

If startIndex is past the end of the string, returns the empty string.

If string has fewer than length characters from startIndex to the end of string, returns all characters from startIndex to the end of string.

char * VuoString_summaryFromValue ( const VuoString  value)

Creates a new double-quoted UTF-8 C string from value, or, if it's more than 32 characters long, creates an aposiopesis.

Example:
"Hello World!"
Example:
"I would like to convey my greeti..."