Loading...
Searching...
No Matches
args.h
1#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5#include <furi.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
18bool args_read_int_and_trim(FuriString* args, int* value);
19
27bool args_read_float_and_trim(FuriString* args, float* value);
28
37bool args_read_string_and_trim(FuriString* args, FuriString* word);
38
47bool args_read_probably_quoted_string_and_trim(FuriString* args, FuriString* word);
48
58bool args_read_hex_bytes(FuriString* args, uint8_t* bytes, size_t bytes_count);
59
70bool args_read_duration(FuriString* args, uint32_t* value, const char* default_unit);
71
72/************************************ HELPERS ***************************************/
73
80size_t args_get_first_word_length(FuriString* args);
81
88size_t args_length(FuriString* args);
89
98bool args_char_to_hex(char hi_nibble, char low_nibble, uint8_t* byte);
99
100#ifdef __cplusplus
101}
102#endif
Definition string.c:4