CiFEr
include
cifer
internal
str.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 XLAB d.o.o.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef CIFER_STR_H
18
#define CIFER_STR_H
19
20
#include <stddef.h>
21
32
typedef
struct
cfe_string
{
33
char
*str;
34
size_t
str_len;
35
}
cfe_string
;
36
41
int
cfe_str_to_int
(
cfe_string
*str_int);
42
46
void
cfe_substring
(
cfe_string
*out,
cfe_string
*in,
size_t
start,
size_t
stop);
47
51
void
cfe_remove_spaces
(
cfe_string
*out,
cfe_string
*source);
52
57
void
cfe_string_free
(
cfe_string
*str);
58
65
void
cfe_strings_concat
(
cfe_string
*out,
cfe_string
*start, ...);
66
74
void
cfe_int_to_str
(
cfe_string
*out,
int
i);
75
#endif
cfe_remove_spaces
void cfe_remove_spaces(cfe_string *out, cfe_string *source)
cfe_substring
void cfe_substring(cfe_string *out, cfe_string *in, size_t start, size_t stop)
cfe_string_free
void cfe_string_free(cfe_string *str)
cfe_strings_concat
void cfe_strings_concat(cfe_string *out, cfe_string *start,...)
cfe_int_to_str
void cfe_int_to_str(cfe_string *out, int i)
cfe_string
struct cfe_string cfe_string
cfe_string
Definition:
str.h:32
cfe_str_to_int
int cfe_str_to_int(cfe_string *str_int)
Generated by
1.8.17