1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/**
* Copyright (C) Mellanox Technologies Ltd. 2019. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
/*
* Define ucs_string_set_t as a khash/set type
*/
typedef ucs_string_set_t;
/**
* Initialize a string set
*
* @param [out] sset String set to initialize.
*/
void ;
/**
* Cleanup a string set and release any memory associated with it.
*
* @param [out] sset String set to clean up.
*/
void ;
/**
* Add a copy of a string to the string set
*
* @param [inout] sset String set to add to.
* @param [in] str String to add. The passed string can be released
* immediately after this call, since the contents of the
* string are copied to an internal buffer.
*
* @param UCS_OK if successful, or UCS_ERR_NO_MEMORY if could not allocate
* enough memory to add the string.
*/
ucs_status_t ;
/**
* Add a formatted string to the string set
*
* @param [inout] sset String set to add to.
* @param [in] fmt Format string to add.
*
* @param UCS_OK if successful, or UCS_ERR_NO_MEMORY if could not allocate
* enough memory to add the string.
*/
ucs_status_t ;
/**
* Check whether a string set contains a given string
*
* @param [in] sset String set to check.
* @param [in] str String to check if contained in the set.
*
* @return Nonzero if the string is contained in the set, 0 otherwise.
*/
int ;
/**
* Print set contents to a string buffer in a lexicographical order
*
* @param [in] sset String set whose contents to print.
* @param [inout] strb Append the strings in the set to this string buffer.
* @param [in] sep Separator string to insert between every two printed
* strings, for example: ","
*
* @param UCS_OK if successful, or UCS_ERR_NO_MEMORY if could not allocate
* enough memory to sort the set or to grow the string buffer.
*/
ucs_status_t ;