Debian Codegraph @

src/vendor/inc/c_strings.pxd

raw
1 #-------------------------------------------------------------------------
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for
4 # license information.
5 #--------------------------------------------------------------------------
6
7
8 cdef extern from "azure_c_shared_utility/strings_types.h":
9
10 ctypedef struct STRING_HANDLE:
11 pass
12
13
14 cdef extern from "azure_c_shared_utility/strings.h":
15
16 STRING_HANDLE STRING_new()
17 STRING_HANDLE STRING_clone(STRING_HANDLE handle)
18 STRING_HANDLE STRING_construct(const char* psz)
19 STRING_HANDLE STRING_construct_n(const char* psz, size_t n)
20 STRING_HANDLE STRING_new_with_memory(const char* memory)
21 STRING_HANDLE STRING_new_quoted(const char* source)
22 STRING_HANDLE STRING_new_JSON(const char* source)
23 STRING_HANDLE STRING_from_byte_array(const unsigned char* source, size_t size)
24 void STRING_delete(STRING_HANDLE handle)
25 int STRING_concat(STRING_HANDLE handle, const char* s2)
26 int STRING_concat_with_STRING(STRING_HANDLE s1, STRING_HANDLE s2)
27 int STRING_quote(STRING_HANDLE handle)
28 int STRING_copy(STRING_HANDLE s1, const char* s2)
29 int STRING_copy_n(STRING_HANDLE s1, const char* s2, size_t n)
30 const char* STRING_c_str(STRING_HANDLE handle)
31 int STRING_empty(STRING_HANDLE handle)
32 size_t STRING_length(STRING_HANDLE handle)
33 int STRING_compare(STRING_HANDLE s1, STRING_HANDLE s2)
34 int STRING_replace(STRING_HANDLE handle, char target, char replace)