source: azure_iot_hub/trunk/azure_iohub/c-utility/inc/azure_c_shared_utility/strings.h@ 388

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

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
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#include "azure_c_shared_utility/umock_c_prod.h"
8#include "azure_c_shared_utility/strings_types.h"
9
10#ifdef __cplusplus
11#include <cstddef>
12extern "C"
13{
14#else
15#include <stddef.h>
16#endif
17
18MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new);
19MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_clone, STRING_HANDLE, handle);
20MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct, const char*, psz);
21MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct_n, const char*, psz, size_t, n);
22MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_with_memory, const char*, memory);
23MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_quoted, const char*, source);
24MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_JSON, const char*, source);
25MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_from_byte_array, const unsigned char*, source, size_t, size);
26MOCKABLE_FUNCTION(, void, STRING_delete, STRING_HANDLE, handle);
27MOCKABLE_FUNCTION(, int, STRING_concat, STRING_HANDLE, handle, const char*, s2);
28MOCKABLE_FUNCTION(, int, STRING_concat_with_STRING, STRING_HANDLE, s1, STRING_HANDLE, s2);
29MOCKABLE_FUNCTION(, int, STRING_quote, STRING_HANDLE, handle);
30MOCKABLE_FUNCTION(, int, STRING_copy, STRING_HANDLE, s1, const char*, s2);
31MOCKABLE_FUNCTION(, int, STRING_copy_n, STRING_HANDLE, s1, const char*, s2, size_t, n);
32MOCKABLE_FUNCTION(, const char*, STRING_c_str, STRING_HANDLE, handle);
33MOCKABLE_FUNCTION(, int, STRING_empty, STRING_HANDLE, handle);
34MOCKABLE_FUNCTION(, size_t, STRING_length, STRING_HANDLE, handle);
35MOCKABLE_FUNCTION(, int, STRING_compare, STRING_HANDLE, s1, STRING_HANDLE, s2);
36MOCKABLE_FUNCTION(, int, STRING_replace, STRING_HANDLE, handle, char, target, char, replace);
37
38extern STRING_HANDLE STRING_construct_sprintf(const char* format, ...);
39extern int STRING_sprintf(STRING_HANDLE s1, const char* format, ...);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /*STRINGS_H*/
Note: See TracBrowser for help on using the repository browser.