Monado OpenXR Runtime
u_string_list.cpp File Reference

A collection of strings, like a list of extensions to enable. More...

#include "u_string_list.h"
#include "u_string_list.hpp"
Include dependency graph for u_string_list.cpp:

Data Structures

struct  u_string_list
 

Functions

struct u_string_listu_string_list_create ()
 
struct u_string_listu_string_list_create_with_capacity (uint32_t capacity)
 
struct u_string_listu_string_list_create_from_list (struct u_string_list *usl)
 
struct u_string_listu_string_list_create_from_array (const char *const *arr, uint32_t size)
 
uint32_t u_string_list_get_size (const struct u_string_list *usl)
 
const char *const * u_string_list_get_data (const struct u_string_list *usl)
 
int u_string_list_append (struct u_string_list *usl, const char *str)
 
int u_string_list_append_array (struct u_string_list *usl, const char *const *arr, uint32_t size)
 
int u_string_list_append_unique (struct u_string_list *usl, const char *str)
 
bool u_string_list_contains (struct u_string_list *usl, const char *str)
 Check if the string is in the list. More...
 
void u_string_list_destroy (struct u_string_list **list_ptr)
 

Detailed Description

A collection of strings, like a list of extensions to enable.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Function Documentation

◆ u_string_list_contains()

bool u_string_list_contains ( struct u_string_list usl,
const char *  str 
)

Check if the string is in the list.

(Comparing string contents, not pointers)

Parameters
uslself pointer
stra non-null, null-terminated string.
Returns
true if the string is in the list.

References xrt::auxiliary::util::StringList::contains().