source: azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/strings.h@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 2.0 KB
Line 
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4#ifndef STRINGS_H
5#define STRINGS_H
6
7#ifdef __cplusplus
8#include <cstddef>
9#else
10#include <stddef.h>
11#endif
12
13#include "umock_c/umock_c_prod.h"
14#include "azure_c_shared_utility/strings_types.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif
20
21MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new);
22MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_clone, STRING_HANDLE, handle);
23MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct, const char*, psz);
24MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct_n, const char*, psz, size_t, n);
25MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_with_memory, const char*, memory);
26MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_quoted, const char*, source);
27MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_JSON, const char*, source);
28MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_from_byte_array, const unsigned char*, source, size_t, size);
29MOCKABLE_FUNCTION(, void, STRING_delete, STRING_HANDLE, handle);
30MOCKABLE_FUNCTION(, int, STRING_concat, STRING_HANDLE, handle, const char*, s2);
31MOCKABLE_FUNCTION(, int, STRING_concat_with_STRING, STRING_HANDLE, s1, STRING_HANDLE, s2);
32MOCKABLE_FUNCTION(, int, STRING_quote, STRING_HANDLE, handle);
33MOCKABLE_FUNCTION(, int, STRING_copy, STRING_HANDLE, s1, const char*, s2);
34MOCKABLE_FUNCTION(, int, STRING_copy_n, STRING_HANDLE, s1, const char*, s2, size_t, n);
35MOCKABLE_FUNCTION(, const char*, STRING_c_str, STRING_HANDLE, handle);
36MOCKABLE_FUNCTION(, int, STRING_empty, STRING_HANDLE, handle);
37MOCKABLE_FUNCTION(, size_t, STRING_length, STRING_HANDLE, handle);
38MOCKABLE_FUNCTION(, int, STRING_compare, STRING_HANDLE, s1, STRING_HANDLE, s2);
39MOCKABLE_FUNCTION(, int, STRING_replace, STRING_HANDLE, handle, char, target, char, replace);
40
41extern STRING_HANDLE STRING_construct_sprintf(const char* format, ...);
42extern int STRING_sprintf(STRING_HANDLE s1, const char* format, ...);
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /*STRINGS_H*/
Note: See TracBrowser for help on using the repository browser.