Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
StringArray Class Reference

String array that auto-converts given char pointers to UTF8 (so JUCE doesn't complain. More...

#include <utils/string.h>

Inheritance diagram for StringArray:
Collaboration diagram for StringArray:

Public Member Functions

 StringArray (const char *const *strs)
 
char ** getNullTerminated () const
 Returns the strings in a newly-allocated NULL-terminated array.
 
void insert (int index, const char *s)
 
void add (const char *s)
 
void set (int index, const char *s)
 
char * getCStr (int index)
 
const char * operator[] (size_t i)
 
void removeString (const char *s)
 

Detailed Description

String array that auto-converts given char pointers to UTF8 (so JUCE doesn't complain.

Definition at line 51 of file string.h.

Constructor & Destructor Documentation

◆ StringArray()

StringArray::StringArray ( )
inline

Definition at line 54 of file string.h.

Member Function Documentation

◆ add()

void StringArray::add ( const char * s)
inline

Definition at line 67 of file string.h.

◆ getNullTerminated()

char ** StringArray::getNullTerminated ( ) const

Returns the strings in a newly-allocated NULL-terminated array.

To be used for C APIs.

◆ insert()

void StringArray::insert ( int index,
const char * s )
inline

Definition at line 63 of file string.h.

◆ operator[]()

const char * StringArray::operator[] ( size_t i)
inline

Definition at line 76 of file string.h.

◆ removeString()

void StringArray::removeString ( const char * s)
inline

Definition at line 80 of file string.h.

◆ set()

void StringArray::set ( int index,
const char * s )
inline

Definition at line 71 of file string.h.


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