Vanilla.PDF  1.4.1
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_GetType(StringObjectHandle* handle, StringType* result);
65 
69  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_GetValue(StringObjectHandle* handle, BufferHandle** result);
70 
74  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_SetValue(StringObjectHandle* handle, BufferHandle* value);
75 
79  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_ToObject(StringObjectHandle* handle, ObjectHandle** result);
80 
84  VANILLAPDF_API error_type CALLING_CONVENTION StringObject_FromObject(ObjectHandle* handle, StringObjectHandle** result);
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_CreateFromEncodedBuffer(BufferHandle* value, LiteralStringObjectHandle** result);
107 
111  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_CreateFromEncodedString(string_type value, LiteralStringObjectHandle** result);
112 
116  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_CreateFromDecodedBuffer(BufferHandle* value, LiteralStringObjectHandle** result);
117 
121  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_CreateFromDecodedString(string_type value, LiteralStringObjectHandle** result);
122 
126  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_GetValue(LiteralStringObjectHandle* handle, BufferHandle** result);
127 
131  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_SetValue(LiteralStringObjectHandle* handle, BufferHandle* value);
132 
136  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_ToStringObject(LiteralStringObjectHandle* handle, StringObjectHandle** result);
137 
141  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_FromStringObject(StringObjectHandle* handle, LiteralStringObjectHandle** result);
142 
146  VANILLAPDF_API error_type CALLING_CONVENTION LiteralStringObject_Release(LiteralStringObjectHandle* handle);
147 
158  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_Create(HexadecimalStringObjectHandle** result);
159 
164 
169 
174 
179 
183  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_GetValue(HexadecimalStringObjectHandle* handle, BufferHandle** result);
184 
188  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_SetValue(HexadecimalStringObjectHandle* handle, BufferHandle* value);
189 
193  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_ToStringObject(HexadecimalStringObjectHandle* handle, StringObjectHandle** result);
194 
199 
203  VANILLAPDF_API error_type CALLING_CONVENTION HexadecimalStringObject_Release(HexadecimalStringObjectHandle* handle);
204 
207 #ifdef __cplusplus
208 };
209 #endif
210 
211 #endif /* _C_STRING_OBJECT_H */
error_type StringObject_Release(StringObjectHandle *handle)
Decrement the internal reference counter.
error_type HexadecimalStringObject_CreateFromDecodedString(string_type value, HexadecimalStringObjectHandle **result)
Creates a new HexadecimalStringObject instance from decoded string data.
StringType
Available types of strings.
Definition: c_string_object.h:42
error_type LiteralStringObject_CreateFromEncodedBuffer(BufferHandle *value, LiteralStringObjectHandle **result)
Creates a new LiteralStringObject instance from encoded data.
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_CreateFromDecodedBuffer(BufferHandle *value, HexadecimalStringObjectHandle **result)
Creates a new HexadecimalStringObject instance from decoded data.
error_type HexadecimalStringObject_SetValue(HexadecimalStringObjectHandle *handle, BufferHandle *value)
Set strings new value.
error_type StringObject_FromObject(ObjectHandle *handle, StringObjectHandle **result)
Convert ObjectHandle to StringObjectHandle.
error_type LiteralStringObject_CreateFromDecodedBuffer(BufferHandle *value, LiteralStringObjectHandle **result)
Creates a new LiteralStringObject instance from decoded data.
error_type HexadecimalStringObject_GetValue(HexadecimalStringObjectHandle *handle, BufferHandle **result)
Get strings current value.
error_type LiteralStringObject_CreateFromEncodedString(string_type value, LiteralStringObjectHandle **result)
Creates a new LiteralStringObject instance from encoded string data.
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 HexadecimalStringObject_ToStringObject(HexadecimalStringObjectHandle *handle, StringObjectHandle **result)
Reinterpret current object as StringObjectHandle.
error_type LiteralStringObject_SetValue(LiteralStringObjectHandle *handle, BufferHandle *value)
Set strings new value.
const char * string_type
C-Style string.
Definition: c_types.h:82
error_type LiteralStringObject_FromStringObject(StringObjectHandle *handle, LiteralStringObjectHandle **result)
Convert IUnknownHandle to LiteralStringObjectHandle.
error_type StringObject_SetValue(StringObjectHandle *handle, BufferHandle *value)
Set strings new value.
error_type LiteralStringObject_ToStringObject(LiteralStringObjectHandle *handle, StringObjectHandle **result)
Reinterpret current object as StringObjectHandle.
Base class for syntactic tokens.
error_type StringObject_GetType(StringObjectHandle *handle, StringType *result)
Get derived type from current string.
error_type HexadecimalStringObject_CreateFromEncodedString(string_type value, HexadecimalStringObjectHandle **result)
Creates a new HexadecimalStringObject instance from encoded string data.
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 LiteralStringObject_CreateFromDecodedString(string_type value, LiteralStringObjectHandle **result)
Creates a new LiteralStringObject instance from decoded string data.
error_type HexadecimalStringObject_Create(HexadecimalStringObjectHandle **result)
Creates a new HexadecimalStringObject instance.
error_type LiteralStringObject_Create(LiteralStringObjectHandle **result)
Creates a new LiteralStringObject instance.
error_type StringObject_ToObject(StringObjectHandle *handle, ObjectHandle **result)
Reinterpret current object as ObjectHandle.
This file contains types and constants used as parameters or return values.
error_type HexadecimalStringObject_CreateFromEncodedBuffer(BufferHandle *value, HexadecimalStringObjectHandle **result)
Creates a new HexadecimalStringObject instance from encoded data.
Reprsents human readable text.
Represents memory stored data.
error_type HexadecimalStringObject_FromStringObject(StringObjectHandle *handle, HexadecimalStringObjectHandle **result)
Convert IUnknownHandle to HexadecimalStringObjectHandle.
error_type HexadecimalStringObject_Release(HexadecimalStringObjectHandle *handle)
Decrement the internal reference counter.
error_type StringObject_GetValue(StringObjectHandle *handle, BufferHandle **result)
Get strings current value.