Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_string_object.h
Go to the documentation of this file.
1 #ifndef _C_STRING_OBJECT_H
2 #define _C_STRING_OBJECT_H
3 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
42  typedef enum {
48 
54  } StringType;
55 
64  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_Type(StringObjectHandle* handle, StringType* result);
65 
69  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_ToLiteral(StringObjectHandle* handle, LiteralStringObjectHandle** result);
70 
74  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_ToHexadecimal(StringObjectHandle* handle, HexadecimalStringObjectHandle** result);
75 
79  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_GetValue(StringObjectHandle* handle, BufferHandle** result);
80 
84  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_SetValue(StringObjectHandle* handle, BufferHandle* value);
85 
89  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_Release(StringObjectHandle* handle);
90 
101  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_Create(LiteralStringObjectHandle** result);
102 
106  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_GetValue(LiteralStringObjectHandle* handle, BufferHandle** result);
107 
111  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_SetValue(LiteralStringObjectHandle* handle, BufferHandle* value);
112 
116  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_Release(LiteralStringObjectHandle* handle);
117 
128  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_Create(HexadecimalStringObjectHandle** result);
129 
133  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_GetValue(HexadecimalStringObjectHandle* handle, BufferHandle** result);
134 
138  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_SetValue(HexadecimalStringObjectHandle* handle, BufferHandle* value);
139 
143  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_Release(HexadecimalStringObjectHandle* handle);
144 
147 #ifdef __cplusplus
148 };
149 #endif
150 
151 #endif /* _C_STRING_OBJECT_H */
error_type StringObject_Type(StringObjectHandle *handle, StringType *result)
Get derived type from current string.
error_type StringObject_Release(StringObjectHandle *handle)
Decrement the internal reference counter.
StringType
Available types of strings.
Definition: c_string_object.h:42
Text stored in raw format.
error_type LiteralStringObject_Release(LiteralStringObjectHandle *handle)
Decrement the internal reference counter.
Definition: c_string_object.h:53
Text stored in hexadecimal notation.
error_type HexadecimalStringObject_SetValue(HexadecimalStringObjectHandle *handle, BufferHandle *value)
Set strings new value.
error_type HexadecimalStringObject_GetValue(HexadecimalStringObjectHandle *handle, BufferHandle **result)
Get strings current value.
error_type LiteralStringObject_GetValue(LiteralStringObjectHandle *handle, BufferHandle **result)
Get strings current value.
This file contains all type forward declarations returned by the library API.
error_type StringObject_ToHexadecimal(StringObjectHandle *handle, HexadecimalStringObjectHandle **result)
Reinterpret current object as HexadecimalStringObjectHandle.
error_type LiteralStringObject_SetValue(LiteralStringObjectHandle *handle, BufferHandle *value)
Set strings new value.
error_type StringObject_SetValue(StringObjectHandle *handle, BufferHandle *value)
Set strings new value.
error_type StringObject_ToLiteral(StringObjectHandle *handle, LiteralStringObjectHandle **result)
Reinterpret current object as LiteralStringObjectHandle.
Definition: c_string_object.h:47
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
This file contains macro declarations for importing and exporting symbols from library boundaries...
error_type HexadecimalStringObject_Create(HexadecimalStringObjectHandle **result)
Creates a new HexadecimalStringObject instance.
error_type LiteralStringObject_Create(LiteralStringObjectHandle **result)
Creates a new LiteralStringObject instance.
This file contains types and constants used as parameters or return values.
Reprsents human readable text.
Represents memory stored data.
error_type HexadecimalStringObject_Release(HexadecimalStringObjectHandle *handle)
Decrement the internal reference counter.
error_type StringObject_GetValue(StringObjectHandle *handle, BufferHandle **result)
Get strings current value.