![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "string_view_utils.hpp"
Go to the source code of this file.
Functions | |
| std::string_view | tokenize (std::string_view &str, char delim, char quot) |
| Tokenizer for string_view. | |
| std::string_view tokenize | ( | std::string_view & | str, |
| char | delim, | ||
| char | quot = '\0' ) |
Tokenizer for string_view.
Useful for non-destructive tokenization of strings. Skips empty tokens. str is modified to view the not yet processed remainder.
Typical usage (prints lines "Hello", "World", "!"):
The 'quot' param allows for a basic quotation based deilimiter escape, however the whole token must be escaped. i.e. sync:"opts=a=1:b=2":fs is fine, but sync:opts="a=1:b=2":fs is not.
Definition at line 3 of file string_view_utils.cpp.
Referenced by audio_frame2_resampler::audio_frame2_resampler(), image_pattern_diagonal::image_pattern_diagonal(), image_pattern_text::image_pattern_text(), audio_cap_pipewire_init(), audio_init(), audio_play_pw_init(), display_conference_init(), display_conference_worker(), display_drm_init(), display_multiplier_init(), display_pw_init(), display_unix_sock_init(), Filter_chain::emplace_new(), init(), parse_cfg(), parse_cfg(), parse_holepunch_conf(), BandwidthWidget::parseLine(), RecvLossWidget::parseLine(), VuMeterWidget::parseLine(), print_capabilities(), and AvailableSettings::queryProcessLine().