Vuo
0.8.0
|
VuoText implementation.
Functions | |
VuoText | VuoText_valueFromJson (json_object *js) |
Decodes the JSON object js , expected to contain a UTF-8 string, to create a new value. | |
json_object * | VuoText_jsonFromValue (const VuoText value) |
Encodes value as a JSON object. | |
char * | VuoText_summaryFromValue (const VuoText value) |
Creates a new UTF-8 C string from value , or, if it's more than 30 Unicode characters long, creates an aposiopesis. | |
VuoText | VuoText_make (const char *unquotedString) |
Creates a VuoText value from an unquoted string (unlike VuoText_valueFromString() , which expects a quoted string). | |
VuoText | VuoText_makeFromMacString (CFStringRef cfString) |
Creates a VuoText value from a CFStringRef . | |
size_t | VuoText_length (const VuoText text) |
Returns the number of Unicode characters in the text. | |
bool | VuoText_areEqual (const VuoText text1, const VuoText text2) |
Returns true if the two texts represent the same Unicode string (even if they use different UTF-8 encodings or Unicode character decompositions). | |
size_t | VuoText_findLastOccurrence (const VuoText string, const VuoText substring) |
Returns the index (starting at 1) of the last instance of substring in string. | |
VuoText | VuoText_substring (const VuoText string, int startIndex, int length) |
Returns the substring of string starting at index startIndex and spanning length Unicode characters. | |
VuoText | VuoText_append (VuoText *texts, size_t textsCount) |
Returns a string consisting of the elements in the texts array concatenated together. | |
VuoText | VuoText_replace (VuoText subject, VuoText stringToFind, VuoText replacement) |
Returns a new string in which each occurrence of stringToFind in subject has been replaced with replacement . | |
char * | VuoText_format (const char *format,...) |
Returns a new string formatted using the printf-style format string. | |
VuoText VuoText_makeFromMacString | ( | CFStringRef | cfString | ) |
Creates a VuoText value from a CFStringRef
.