Halide
Halide::Runtime::Internal::StringUtils Struct Reference

#include <string_storage.h>

Static Public Member Functions

static bool is_empty (const char *str)
 
static size_t count_tokens (const char *str, const char *delim)
 
static bool contains (const char *s1, const char *s2, size_t n)
 
static size_t count_length (const char *str, size_t max_chars)
 
static size_t copy_up_to (char *dst, const char *src, size_t max_chars)
 

Detailed Description

Definition at line 12 of file string_storage.h.

Member Function Documentation

◆ is_empty()

static bool Halide::Runtime::Internal::StringUtils::is_empty ( const char *  str)
inlinestatic

◆ count_tokens()

static size_t Halide::Runtime::Internal::StringUtils::count_tokens ( const char *  str,
const char *  delim 
)
inlinestatic

Definition at line 24 of file string_storage.h.

References is_empty(), Halide::Runtime::Internal::strlen(), and strstr().

◆ contains()

static bool Halide::Runtime::Internal::StringUtils::contains ( const char *  s1,
const char *  s2,
size_t  n 
)
inlinestatic

◆ count_length()

static size_t Halide::Runtime::Internal::StringUtils::count_length ( const char *  str,
size_t  max_chars 
)
inlinestatic

Definition at line 64 of file string_storage.h.

References is_empty().

Referenced by Halide::Runtime::Internal::StringStorage::length().

◆ copy_up_to()

static size_t Halide::Runtime::Internal::StringUtils::copy_up_to ( char *  dst,
const char *  src,
size_t  max_chars 
)
inlinestatic

Definition at line 72 of file string_storage.h.


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