Go to the source code of this file.
|
JUNO_STATUS_T | Juno_StringInit (JUNO_STRING_T *ptString, JUNO_MEMORY_ALLOC_T *ptAlloc, const char *pcStr, size_t zLen, JUNO_FAILURE_HANDLER_T pfcnFailureHandler, JUNO_USER_DATA_T *pvUserData) |
| Creates a JUNO string from a C string.
|
|
JUNO_STATUS_T | Juno_StringSetAlloc (JUNO_STRING_T *ptString, JUNO_MEMORY_ALLOC_T *ptAlloc) |
| Sets a new memory allocator for a JUNO string.
|
|
JUNO_STATUS_T | Juno_StringLength (JUNO_STRING_T *ptString, size_t *pzRetSize) |
| Retrieves the size of the JUNO string.
|
|
JUNO_STATUS_T | Juno_StringAppend (JUNO_STRING_T *ptString, const char *pcCstr, size_t zLen) |
|
JUNO_STATUS_T | Juno_StringConcat (JUNO_STRING_T *ptString1, JUNO_STRING_T *ptString2) |
| Concatenates two JUNO strings.
|
|
JUNO_STATUS_T | Juno_StringFree (JUNO_STRING_T *ptString) |
| Frees resources associated with the JUNO string.
|
|
const JUNO_STRING_API_T * | Juno_StringApi (void) |
|
◆ Juno_StringApi()
◆ Juno_StringAppend()
Writes a C-String to the Juno String
- Parameters
-
ptString | The juno string to write to |
pcCstr | The C string |
zLen | The length of the C string |
- Returns
- JUNO_STATUS_T result status
◆ Juno_StringConcat()
Concatenates two JUNO strings.
- Parameters
-
ptString1 | Pointer to the first string. |
ptString2 | Pointer to the second string. |
- Returns
- JUNO_STATUS_T result status.
◆ Juno_StringFree()
Frees resources associated with the JUNO string.
- Parameters
-
ptString | Pointer to the JUNO string structure. |
- Returns
- JUNO_STATUS_T result status.
◆ Juno_StringInit()
Creates a JUNO string from a C string.
- Parameters
-
ptString | Pointer to the JUNO string structure. |
ptAlloc | Memory allocator. |
pcStr | C-string input. |
zLen | Length of the input string. |
pfcnFailureHandler | Failure handler callback. |
pvUserData | User data pointer. |
- Returns
- JUNO_STATUS_T result status.
◆ Juno_StringLength()
Retrieves the size of the JUNO string.
- Parameters
-
ptString | Pointer to the JUNO string structure. |
pzRetSize | Pointer to variable to store the string size. |
- Returns
- JUNO_STATUS_T result status.
◆ Juno_StringSetAlloc()
Sets a new memory allocator for a JUNO string.
- Parameters
-
ptString | Pointer to the JUNO string structure. |
ptAlloc | New memory allocator. |
- Returns
- JUNO_STATUS_T result status.