Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
azure_c_shared_utility/strings.h@8:3db46d1e5471, 2016-08-12 (annotated)
- Committer:
- AzureIoTClient
- Date:
- Fri Aug 12 10:04:46 2016 -0700
- Revision:
- 8:3db46d1e5471
- Parent:
- 4:2bd2074fe6c4
- Child:
- 18:6d8a413a4d9a
1.0.10
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Azure.IoT Build | 0:fa2de1b79154 | 1 | // Copyright (c) Microsoft. All rights reserved. |
Azure.IoT Build | 0:fa2de1b79154 | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
Azure.IoT Build | 0:fa2de1b79154 | 3 | |
Azure.IoT Build | 0:fa2de1b79154 | 4 | #ifndef STRINGS_H |
Azure.IoT Build | 0:fa2de1b79154 | 5 | #define STRINGS_H |
Azure.IoT Build | 0:fa2de1b79154 | 6 | |
Azure.IoT Build | 0:fa2de1b79154 | 7 | #ifdef __cplusplus |
Azure.IoT Build | 0:fa2de1b79154 | 8 | #include <cstddef> |
Azure.IoT Build | 0:fa2de1b79154 | 9 | extern "C" |
Azure.IoT Build | 0:fa2de1b79154 | 10 | { |
Azure.IoT Build | 0:fa2de1b79154 | 11 | #else |
Azure.IoT Build | 0:fa2de1b79154 | 12 | #include <stddef.h> |
Azure.IoT Build | 0:fa2de1b79154 | 13 | #endif |
Azure.IoT Build | 0:fa2de1b79154 | 14 | |
AzureIoTClient | 2:20b88da3e604 | 15 | #include "azure_c_shared_utility/umock_c_prod.h" |
AzureIoTClient | 2:20b88da3e604 | 16 | |
Azure.IoT Build | 0:fa2de1b79154 | 17 | typedef struct STRING_TAG* STRING_HANDLE; |
Azure.IoT Build | 0:fa2de1b79154 | 18 | |
AzureIoTClient | 2:20b88da3e604 | 19 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new); |
AzureIoTClient | 2:20b88da3e604 | 20 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_clone, STRING_HANDLE, handle); |
AzureIoTClient | 2:20b88da3e604 | 21 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct, const char*, psz); |
AzureIoTClient | 2:20b88da3e604 | 22 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_construct_n, const char*, psz, size_t, n); |
AzureIoTClient | 2:20b88da3e604 | 23 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_with_memory, const char*, memory); |
AzureIoTClient | 2:20b88da3e604 | 24 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_quoted, const char*, source); |
AzureIoTClient | 2:20b88da3e604 | 25 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_new_JSON, const char*, source); |
AzureIoTClient | 4:2bd2074fe6c4 | 26 | MOCKABLE_FUNCTION(, STRING_HANDLE, STRING_from_byte_array, const unsigned char*, source, size_t, size); |
AzureIoTClient | 2:20b88da3e604 | 27 | MOCKABLE_FUNCTION(, void, STRING_delete, STRING_HANDLE, handle); |
AzureIoTClient | 2:20b88da3e604 | 28 | MOCKABLE_FUNCTION(, int, STRING_concat, STRING_HANDLE, handle, const char*, s2); |
AzureIoTClient | 2:20b88da3e604 | 29 | MOCKABLE_FUNCTION(, int, STRING_concat_with_STRING, STRING_HANDLE, s1, STRING_HANDLE, s2); |
AzureIoTClient | 2:20b88da3e604 | 30 | MOCKABLE_FUNCTION(, int, STRING_quote, STRING_HANDLE, handle); |
AzureIoTClient | 2:20b88da3e604 | 31 | MOCKABLE_FUNCTION(, int, STRING_copy, STRING_HANDLE, s1, const char*, s2); |
AzureIoTClient | 2:20b88da3e604 | 32 | MOCKABLE_FUNCTION(, int, STRING_copy_n, STRING_HANDLE, s1, const char*, s2, size_t, n); |
AzureIoTClient | 2:20b88da3e604 | 33 | MOCKABLE_FUNCTION(, const char*, STRING_c_str, STRING_HANDLE, handle); |
AzureIoTClient | 2:20b88da3e604 | 34 | MOCKABLE_FUNCTION(, int, STRING_empty, STRING_HANDLE, handle); |
AzureIoTClient | 2:20b88da3e604 | 35 | MOCKABLE_FUNCTION(, size_t, STRING_length, STRING_HANDLE, handle); |
AzureIoTClient | 2:20b88da3e604 | 36 | MOCKABLE_FUNCTION(, int, STRING_compare, STRING_HANDLE, s1, STRING_HANDLE, s2); |
Azure.IoT Build | 0:fa2de1b79154 | 37 | |
AzureIoTClient | 8:3db46d1e5471 | 38 | extern STRING_HANDLE STRING_construct_sprintf(const char* format, ...); |
AzureIoTClient | 8:3db46d1e5471 | 39 | extern int STRING_sprintf(STRING_HANDLE s1, const char* format, ...); |
Azure.IoT Build | 0:fa2de1b79154 | 40 | |
Azure.IoT Build | 0:fa2de1b79154 | 41 | #ifdef __cplusplus |
Azure.IoT Build | 0:fa2de1b79154 | 42 | } |
Azure.IoT Build | 0:fa2de1b79154 | 43 | #endif |
Azure.IoT Build | 0:fa2de1b79154 | 44 | |
Azure.IoT Build | 0:fa2de1b79154 | 45 | #endif /*STRINGS_H*/ |