Halide 22.0.0 Halide compiler and libraries

Static Public Member Functions | List of all members
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

Definition at line 13 of file string_storage.h.

Referenced by Halide::Runtime::Internal::StringStorage::append(), Halide::Runtime::Internal::StringStorage::assign(), contains(), Halide::Runtime::Internal::StringTable::contains(), count_length(), count_tokens(), Halide::Runtime::Internal::StringTable::parse(), and Halide::Runtime::Internal::StringStorage::prepend().

## ◆ 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().

Referenced by Halide::Runtime::Internal::StringTable::parse().

## ◆ contains()

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

Definition at line 44 of file string_storage.h.

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

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

## ◆ 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::append(), copy_up_to(), Halide::Runtime::Internal::StringStorage::length(), and Halide::Runtime::Internal::StringStorage::prepend().

## ◆ 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.

References count_length(), and memcpy().

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

- src/runtime/internal/string_storage.h