ustr (3) - Linux Manuals
ustr: ustr string library functions
NAME
ustr - ustr string library functionsSYNOPSIS
#include "ustr.h"
create constant/read-only strings, and USTR_SC_INIT_AUTO() to create strings
that use stack space upto a certain amount.
Creating read-only Ustr functions
Function: USTR()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to Ustr data
Type[1]: void *
Explanation:
Note:
Function: USTRP()
Returns: Ustrp string
Type: struct Ustrp *
Parameter[1]: Pointer to Ustrp data
Type[1]: void *
Explanation:
Note:
Function: USTR1()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Data for Ustr string
Type[2]: const char[]
Explanation:
Note:
Function: USTR2()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded 2nd byte of number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Encoded 1st byte of number of the length of Ustr string
Type[2]: symbol
Parameter[3]: Data for Ustr string
Type[3]: const char[]
Explanation:
Function: USTR4()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded 4th byte of number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Encoded 3rd byte of number of the length of Ustr string
Type[2]: symbol
Parameter[3]: Encoded 2nd byte of number of the length of Ustr string
Type[3]: symbol
Parameter[4]: Encoded 1st byte of number of the length of Ustr string
Type[4]: symbol
Parameter[5]: Data for Ustr string
Type[5]: const char[]
Explanation:
Function: USTR1_CHK()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Data for Ustr string
Type[2]: const char[]
Explanation:
Note:
Function: USTR2_CHK()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded 2nd byte of number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Encoded 1st byte of number of the length of Ustr string
Type[2]: symbol
Parameter[3]: Data for Ustr string
Type[3]: const char[]
Explanation:
Note:
Function: USTR4_CHK()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded 4th byte of number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Encoded 3rd byte of number of the length of Ustr string
Type[2]: symbol
Parameter[3]: Encoded 2nd byte of number of the length of Ustr string
Type[3]: symbol
Parameter[4]: Encoded 1st byte of number of the length of Ustr string
Type[4]: symbol
Parameter[5]: Data for Ustr string
Type[5]: const char[]
Explanation:
Note:
Function: USTRP1()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Data for Ustr string
Type[2]: const char[]
Explanation:
Function: USTRP2()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded 2nd byte of number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Encoded 1st byte of number of the length of Ustr string
Type[2]: symbol
Parameter[3]: Data for Ustr string
Type[3]: const char[]
Explanation:
Function: USTRP4()
Returns: Ustrp string
Type: struct Ustrp *
Parameter[1]: Encoded 4th byte of number of the length of Ustrp string
Type[1]: symbol
Parameter[2]: Encoded 3rd byte of number of the length of Ustrp string
Type[2]: symbol
Parameter[3]: Encoded 2nd byte of number of the length of Ustrp string
Type[3]: symbol
Parameter[4]: Encoded 1st byte of number of the length of Ustrp string
Type[4]: symbol
Parameter[5]: Data for Ustr string
Type[5]: const char[]
Explanation:
Function: USTRP1_CHK()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Data for Ustr string
Type[2]: const char[]
Explanation:
Function: USTRP2_CHK()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Encoded 2nd byte of number of the length of Ustr string
Type[1]: symbol
Parameter[2]: Encoded 1st byte of number of the length of Ustr string
Type[2]: symbol
Parameter[3]: Data for Ustr string
Type[3]: const char[]
Explanation:
Function: USTRP4_CHK()
Returns: Ustrp string
Type: struct Ustrp *
Parameter[1]: Encoded 4th byte of number of the length of Ustrp string
Type[1]: symbol
Parameter[2]: Encoded 3rd byte of number of the length of Ustrp string
Type[2]: symbol
Parameter[3]: Encoded 2nd byte of number of the length of Ustrp string
Type[3]: symbol
Parameter[4]: Encoded 1st byte of number of the length of Ustrp string
Type[4]: symbol
Parameter[5]: Data for Ustr string
Type[5]: const char[]
Explanation:
Creating fixed Ustr functions
Function: USTR_SIZE_FIXED()
Returns: Size of area of memory
Type: size_t
Parameter[1]: Size of area of memory
Type[1]: size_t
Explanation:
Note:
Function: ustr_init_fixed()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to area of memory to use as a Ustr string
Type[1]: void *
Parameter[2]: Size of area of memory
Type[2]: size_t
Parameter[3]: Whether the fixed size Ustr should be limited
Type[3]: int
Parameter[4]: The initial length of the Ustr
Type[4]: size_t
Explanation:
Note:
Function: USTR_SC_INIT_AUTO()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Area of memory to use as a Ustr string
Type[1]: char[]
Parameter[2]: Whether the fixed size Ustr should be limited
Type[2]: int
Parameter[3]: The initial length of the Ustr
Type[3]: size_t
Explanation:
Note:
Function: USTR_SC_INIT_AUTO_OSTR()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Area of memory to use as a Ustr string
Type[1]: char[]
Parameter[2]: Whether the fixed size Ustr should be limited
Type[2]: int
Parameter[3]: The initial string in the buffer, as a constant string
Type[3]: size_t
Explanation:
Note:
Debugging functions
Function: ustr_assert_valid()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a Ustr string
Type[1]: Ustr *
Explanation:
Note:
Function: ustr_assert_valid_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a Ustr string
Type[1]: Ustr *
Parameter[2]: Position in the Ustr
Type[2]: size_t
Parameter[3]: Length to delete from the Ustr
Type[3]: size_t
Explanation:
Function: USTR_CNTL_MALLOC_CHECK_BEG()
Returns: Success or failure
Type: int
Parameter[1]: Condition for begin malloc checking or not
Type[1]: int
Explanation:
Note:
Function: USTR_CNTL_MALLOC_CHECK_LVL()
Returns: Level of current malloc check
Type: int
Parameter[1]: Nothing
Type[1]: void
Explanation:
Function: USTR_CNTL_MALLOC_CHECK_MEM()
Returns: Success or failure
Type: int
Parameter[1]: Pointer returned from malloc check
Type[1]: void *
Explanation:
Note:
Function: USTR_CNTL_MALLOC_CHECK_MEM_SZ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer returned from malloc check
Type[1]: void *
Parameter[2]: Length of allocated memory
Type[2]: size_t
Explanation:
Note:
Function: USTR_CNTL_MALLOC_CHECK_MEM_MINSZ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer returned from malloc check
Type[1]: void *
Parameter[2]: Length of allocated memory
Type[2]: size_t
Explanation:
Note:
Function: USTR_CNTL_MALLOC_CHECK_MEM_USTR()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a Ustr string
Type[1]: Ustr *
Explanation:
Note:
Function: USTR_CNTL_MALLOC_CHECK_MEM_USTRP()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a Ustrp string
Type[1]: Ustrp *
Explanation:
Function: USTR_CNTL_MALLOC_CHECK_END()
Returns: Success or failure
Type: int
Parameter[1]: Nothing
Type[1]: void
Explanation:
Note:
Function: USTR_CNTL_MALLOC_CHECK_ADD()
Returns: Success or failure
Type: int
Parameter[1]: Condition to begin malloc checking or not
Type[1]: int
Explanation:
Function: USTR_CNTL_MALLOC_CHECK_DEL()
Returns: Success or failure
Type: int
Parameter[1]: Condition to end malloc checking or not
Type[1]: int
Explanation:
Note:
Creating allocated Ustr functions
Function: ustr_init_size()
Returns: Size that needs to be allocated
Type: size_t
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: Length of data in the Ustr
Type[4]: size_t
Explanation:
Function: ustr_init_alloc()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to area of memory to use as a Ustr string
Type[1]: void *
Parameter[2]: Size of area of memory
Type[2]: size_t
Parameter[3]: Whether Ustr should store the size
Type[3]: size_t
Parameter[4]: Number of bytes to use for references
Type[4]: size_t
Parameter[5]: Whether the Ustr should use exact allocations
Type[5]: int
Parameter[6]: Whether the Ustr should have the "enomem" flag set
Type[6]: int
Parameter[7]: The initial length of the Ustr
Type[7]: size_t
Explanation:
Function: ustr_dupx_empty()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocation flag
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Explanation:
Note:
Function: ustr_dup_empty()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Nothing
Type[1]: void
Explanation:
Function: ustr_dupx_undef()
Returns: Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Length of new undefined data
Type[5]: size_t
Explanation:
Function: ustr_dup_undef()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Length of new undefined data
Type[1]: size_t
Explanation:
Function: ustr_dup()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_dupx()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Pointer to a constant Ustr string
Type[5]: const struct Ustr *
Explanation:
Function: ustr_sc_dup()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Note:
Function: ustr_sc_dupx()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: A pointer to a pointer to a Ustr string
Type[5]: struct Ustr **
Explanation:
Note:
Function: ustr_dup_buf()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to data
Type[1]: const void *
Parameter[2]: Length of data
Type[2]: size_t
Explanation:
Function: ustr_dupx_buf()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Pointer to data
Type[5]: const void *
Parameter[6]: Length of data
Type[6]: size_t
Explanation:
Function: ustr_dup_cstr()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to constant C-style string
Type[1]: const char *
Explanation:
Function: ustr_dupx_cstr()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Pointer to constant C-style string
Type[5]: const char *
Explanation:
Function: USTR_DUP_OSTR()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: A constant C-style string
Type[1]: const char []
Explanation:
Function: USTR_DUP_OBJ()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: A symbol
Type[1]: ...
Explanation:
Note:
Function: ustr_dup_subustr()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Position in the Ustr
Type[2]: size_t
Parameter[3]: Length to add from the Ustr
Type[3]: size_t
Explanation:
Note:
Function: ustr_dupx_subustr()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: A pointer to a constant Ustr string
Type[5]: const struct Ustr *
Parameter[6]: Position in the Ustr
Type[6]: size_t
Parameter[7]: Length to add from the Ustr
Type[7]: size_t
Explanation:
Note:
Function: ustr_dup_rep_chr()
Returns: A pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Byte value of data
Type[1]: char
Parameter[2]: Length of bytes as data
Type[2]: size_t
Explanation:
Function: ustr_dupx_rep_chr()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Byte value of data
Type[5]: char
Parameter[6]: Length of bytes as data
Type[6]: size_t
Explanation:
Function: ustr_sc_vjoin()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Separator to go between Ustr strings
Type[1]: const struct Ustr *
Parameter[2]: A pointer to the first constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: A pointer to the second constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Variable argument list variable, from va_start()
Type[4]: va_list
Explanation:
Note:
Function: ustr_sc_join()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Separator to go between Ustr strings
Type[1]: const struct Ustr *
Parameter[2]: A pointer to the first constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: A pointer to the second constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Zero or more pointers to constant Ustr strings and then USTR_NULL
Type[4]: ...
Explanation:
Note:
Function: ustr_sc_vjoinx()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Separator to go between Ustr strings
Type[5]: const struct Ustr *
Parameter[6]: A pointer to the first constant Ustr string
Type[6]: const struct Ustr *
Parameter[7]: A pointer to the second constant Ustr string
Type[7]: const struct Ustr *
Parameter[8]: Variable argument list variable, from va_start()
Type[8]: va_list
Explanation:
Note:
Function: ustr_sc_joinx()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Separator to go between Ustr strings
Type[5]: const struct Ustr *
Parameter[6]: A pointer to the first constant Ustr string
Type[6]: const struct Ustr *
Parameter[7]: A pointer to the second constant Ustr string
Type[7]: const struct Ustr *
Parameter[8]: Zero or more pointers to constant Ustr strings and then USTR_NULL
Type[8]: ...
Explanation:
Function: ustr_sc_vconcat()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: A pointer to the first constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Variable argument list variable, from va_start()
Type[2]: va_list
Explanation:
Note:
Function: ustr_sc_concat()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: A pointer to the first constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Zero or more pointers to constant Ustr strings and then USTR_NULL
Type[2]: ...
Explanation:
Function: ustr_sc_vconcatx()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: A pointer to the first constant Ustr string
Type[5]: const struct Ustr *
Parameter[6]: Variable argument list variable, from va_start()
Type[6]: va_list
Explanation:
Note:
Function: ustr_sc_concatx()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: A pointer to the first constant Ustr string
Type[5]: const struct Ustr *
Parameter[6]: Zero or more pointers to constant Ustr strings and then USTR_NULL
Type[6]: ...
Explanation:
Deleting a Ustr, or data within a Ustr
Function: ustr_free()
Returns: Nothing
Type: void
Parameter[1]: Pointer to a Ustr
Type[1]: struct Ustr *
Explanation:
Note:
Function: ustrp_free()
Returns: Nothing
Type: void
Parameter[1]: Pointer to a Ustr pool object
Type[1]: struct Ustr_pool *
Parameter[2]: Pointer to a Ustrp (pool allocated Ustr)
Type[2]: struct Ustrp *
Explanation:
Function: ustr_sc_free()
Returns: Nothing
Type: void
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Note:
Function: ustr_sc_free2()
Returns: Nothing
Type: void
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Pointer to a Ustr string
Type[2]: struct Ustr *
Explanation:
Note:
Function: ustr_sc_free_shared()
Returns: Nothing
Type: void
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_del()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Length to delete from the Ustr
Type[2]: size_t
Explanation:
Note:
Function: ustr_del_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position in the Ustr
Type[2]: size_t
Parameter[3]: Length to delete from the Ustr
Type[3]: size_t
Explanation:
Function: ustr_sc_del()
Returns: Nothing
Type: void
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Note:
Adding data to a Ustr
Function: ustr_add_undef()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Length of new undefined data
Type[2]: size_t
Explanation:
Function: ustr_add_buf()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Pointer to data
Type[2]: const void *
Parameter[3]: Length of data
Type[3]: size_t
Explanation:
Function: ustr_add_cstr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Pointer to constant C-style string
Type[2]: const char *
Explanation:
Function: USTR_ADD_OSTR()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A constant C-style string
Type[2]: const char []
Explanation:
Function: USTR_ADD_OBJ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A symbol
Type[2]: ...
Explanation:
Note:
Function: ustr_add()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Note:
Function: ustr_add_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to add from the Ustr
Type[4]: size_t
Explanation:
Note:
Function: ustr_add_rep_chr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Byte value of data
Type[2]: char
Parameter[3]: Length of bytes as data
Type[3]: size_t
Explanation:
Setting a Ustr to some data
Function: ustr_set_undef()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: size_t
Type[2]: size_t
Explanation:
Function: ustr_set_empty()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_set_buf()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Buffer containting data
Type[2]: const void *
Parameter[3]: Length of Buffer
Type[3]: size_t
Explanation:
Function: ustr_set_cstr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: USTR_SET_OSTR()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A constant C-style string
Type[2]: const char []
Explanation:
Function: USTR_SET_OBJ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A symbol
Type[2]: ...
Explanation:
Note:
Function: ustr_set()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_set_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to set from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_set_rep_chr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Byte value of data
Type[2]: char
Parameter[3]: Length of bytes as data
Type[3]: size_t
Explanation:
Inserting data into a Ustr
Function: ustr_ins_undef()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: Length of new undefined data
Type[3]: size_t
Explanation:
Function: ustr_ins_buf()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: Pointer to data
Type[3]: const void *
Parameter[4]: Length of data
Type[4]: size_t
Explanation:
Function: ustr_ins_cstr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: Pointer to constant C-style string
Type[3]: const char *
Explanation:
Function: USTR_INS_OSTR()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: A constant C-style string
Type[3]: const char []
Explanation:
Function: USTR_INS_OBJ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: A symbol
Type[3]: ...
Explanation:
Note:
Function: ustr_ins()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Explanation:
Function: ustr_ins_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to ins from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_ins_rep_chr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[2]: Byte value of data
Type[2]: char
Parameter[3]: Length of bytes as data
Type[3]: size_t
Explanation:
Adding, duplicating and setting formatted data to a Ustr
Function: ustr_add_vfmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Limit of data to add
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Variable argument list variable, from va_start()
Type[4]: va_list
Explanation:
Function: ustr_add_vfmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Parameter[3]: Variable argument list variable, from va_start()
Type[3]: va_list
Explanation:
Function: ustr_add_fmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Limit of data to add
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Options depending on value of Parameter[3]
Type[4]: ...
Explanation:
Function: ustr_add_fmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Parameter[3]: Options depending on value of Parameter[2]
Type[3]: ...
Explanation:
Function: ustr_dup_vfmt_lim()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Limit of data to dup
Type[1]: size_t
Parameter[2]: Pointer to a constant Ustr string
Type[2]: const char *
Parameter[3]: Variable argument list variable, from va_start()
Type[3]: va_list
Explanation:
Function: ustr_dup_vfmt()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Limit of data to dup
Type[1]: size_t
Parameter[2]: Pointer to a constant Ustr string
Type[2]: const char *
Parameter[3]: Variable argument list variable, from va_start()
Type[3]: va_list
Explanation:
Function: ustr_dup_fmt_lim()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Limit of data to dup
Type[1]: size_t
Parameter[2]: Pointer to a constant Ustr string
Type[2]: const char *
Parameter[3]: Options depending on value of Parameter[2]
Type[3]: ...
Explanation:
Function: ustr_dup_fmt()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Pointer to a constant Ustr string
Type[1]: const char *
Parameter[2]: Options depending on value of Parameter[1]
Type[2]: ...
Explanation:
Function: ustr_dupx_fmt_lim()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Limit of data to dup
Type[5]: size_t
Parameter[6]: Pointer to a constant Ustr string
Type[6]: const char *
Parameter[7]: Options depending on value of Parameter[6]
Type[7]: ...
Explanation:
Function: ustr_dupx_fmt()
Returns: Pointer to a Ustr string
Type: struct Ustr *
Parameter[1]: Size of allocated storage
Type[1]: size_t
Parameter[2]: Number of bytes to use for reference count
Type[2]: size_t
Parameter[3]: Exact memory allocations
Type[3]: int
Parameter[4]: ENOMEM, memory error flag
Type[4]: int
Parameter[5]: Pointer to a constant Ustr string
Type[5]: const char *
Parameter[6]: Options depending on value of Parameter[5]
Type[6]: ...
Explanation:
Function: ustr_set_vfmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Limit of data to set
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Variable argument list variable, from va_start()
Type[4]: va_list
Explanation:
Function: ustr_set_vfmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Parameter[3]: Variable argument list variable, from va_start()
Type[3]: va_list
Explanation:
Function: ustr_set_fmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Limit of data to set
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Options depending on value of Parameter[3]
Type[4]: ...
Explanation:
Function: ustr_set_fmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Parameter[3]: Options depending on value of Parameter[2]
Type[3]: ...
Explanation:
Function: ustr_ins_vfmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: Limit of data to insert
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string
Type[4]: const char *
Parameter[5]: Variable argument list variable, from va_start()
Type[5]: va_list
Explanation:
Function: ustr_ins_vfmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Variable argument list variable, from va_start()
Type[4]: va_list
Explanation:
Function: ustr_ins_fmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: Limit of data to insert
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string
Type[4]: const char *
Parameter[5]: Options depending on value of Parameter[4]
Type[5]: ...
Explanation:
Function: ustr_ins_fmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position after which the data should be added
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Options depending on value of Parameter[3]
Type[4]: ...
Explanation:
Function: ustr_sub_vfmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Limit of data to substitute
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string
Type[4]: const char *
Parameter[5]: Variable argument list variable, from va_start()
Type[5]: va_list
Explanation:
Function: ustr_sub_vfmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Variable argument list variable, from va_start()
Type[4]: va_list
Explanation:
Function: ustr_sub_fmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Limit of data to substitute
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string
Type[4]: const char *
Parameter[5]: Options depending on value of Parameter[4]
Type[5]: ...
Explanation:
Function: ustr_sub_fmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string
Type[3]: const char *
Parameter[4]: Options depending on value of Parameter[3]
Type[4]: ...
Explanation:
Function: ustr_sc_sub_vfmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: Limit of data to substitute
Type[4]: size_t
Parameter[5]: A pointer to a constant C-style string
Type[5]: const char *
Parameter[6]: Variable argument list variable, from va_start()
Type[6]: va_list
Explanation:
Function: ustr_sc_sub_vfmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string
Type[4]: const char *
Parameter[5]: Variable argument list variable, from va_start()
Type[5]: va_list
Explanation:
Function: ustr_sc_sub_fmt_lim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: Limit of data to substitute
Type[4]: size_t
Parameter[5]: A pointer to a constant C-style string
Type[5]: const char *
Parameter[6]: Options depending on value of Parameter[5]
Type[6]: ...
Explanation:
Function: ustr_sc_sub_fmt()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string
Type[4]: const char *
Parameter[5]: Options depending on value of Parameter[5]
Type[5]: ...
Explanation:
Accessing the variables of a Ustr
Function: ustr_len()
Returns: The length of the Ustr
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_cstr()
Returns: Read-only pointer to the start of data in the Ustr
Type: const char *
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_wstr()
Returns: Writable pointer to the start of data in the Ustr, or NULL
Type: char *
Parameter[1]: A pointer to a constant Ustr string
Type[1]: struct Ustr *
Explanation:
Note:
Function: ustr_alloc()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_exact()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_sized()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_ro()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_fixed()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_enomem()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_shared()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_limited()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_owner()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_size()
Returns: size_t
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_size_alloc()
Returns: size_t
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_size_overhead()
Returns: size_t
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_conf()
Returns: Nothing
Type: void
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Return size allocated number
Type[2]: size_t *
Parameter[3]: Return number of bytes used in the reference count
Type[3]: size_t *
Parameter[4]: Return exact allocations flag
Type[4]: int *
Parameter[5]: Return number of bytes used in the length
Type[5]: size_t *
Parameter[5]: Return number of references to this Ustr
Type[5]: size_t *
Explanation:
Note:
Setting the flags of a Ustr
Function: ustr_setf_enomem_err()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a Ustr string
Type[1]: struct Ustr *
Explanation:
Note:
Function: ustr_setf_enomem_clr()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a Ustr string
Type[1]: struct Ustr *
Explanation:
Note:
Function: ustr_setf_share()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a Ustr string
Type[1]: struct Ustr *
Explanation:
Note:
Function: ustr_setf_owner()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a Ustr string
Type[1]: struct Ustr *
Explanation:
Note:
Comparing data in a Ustr
Function: ustr_cmp_buf()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_subustr()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_cstr()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_fast_buf()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_fast()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_fast_subustr()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_fast_cstr()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_case_buf()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_case()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_case_subustr()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_case_cstr()
Returns: Less then zero, zero or greater than zero depending on comparison
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_buf_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_subustr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_cstr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_case_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_case_buf_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_case_subustr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_case_cstr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_prefix_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_prefix_buf_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_prefix_cstr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_prefix_subustr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_case_prefix_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_case_prefix_buf_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_case_prefix_cstr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_case_prefix_subustr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_suffix_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_suffix_buf_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_suffix_cstr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_suffix_subustr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Function: ustr_cmp_case_suffix_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Explanation:
Function: ustr_cmp_case_suffix_buf_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to constant bytes, to compare
Type[2]: const void *
Parameter[3]: Length of comparison bytes
Type[3]: size_t
Explanation:
Function: ustr_cmp_case_suffix_cstr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant C-style string
Type[2]: const char *
Explanation:
Function: ustr_cmp_case_suffix_subustr_eq()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to compare from the Ustr
Type[4]: size_t
Explanation:
Searching for data in a Ustr
Function: ustr_srch_chr_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: Byte data to search for
Type[3]: char
Explanation:
Function: ustr_srch_chr_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: Byte data to search for
Type[3]: char
Explanation:
Note:
Function: ustr_srch_buf_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to data to search for
Type[3]: const void *
Parameter[4]: Length of the data to search for
Type[4]: size_t
Explanation:
Function: ustr_srch_buf_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to data to search for
Type[3]: const void *
Parameter[4]: Length of the data to search for
Type[4]: size_t
Explanation:
Note:
Function: ustr_srch_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, to search for
Type[3]: const struct Ustr *
Explanation:
Function: ustr_srch_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, to search for
Type[3]: const struct Ustr *
Explanation:
Note:
Function: ustr_srch_cstr_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to C-style string data, to search for
Type[3]: const char *
Explanation:
Function: ustr_srch_cstr_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to C-style string data, to search for
Type[3]: const char *
Explanation:
Note:
Function: ustr_srch_subustr_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Position in the Ustr
Type[4]: size_t
Parameter[5]: Length of data to search, from the Ustr
Type[5]: size_t
Explanation:
Function: ustr_srch_subustr_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Position in the Ustr
Type[4]: size_t
Parameter[5]: Length of data to search, from the Ustr
Type[5]: size_t
Explanation:
Note:
Function: ustr_srch_case_chr_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: Byte data to search for
Type[3]: char
Explanation:
Function: ustr_srch_case_chr_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: Byte data to search for
Type[3]: char
Explanation:
Function: ustr_srch_case_buf_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to data to search for
Type[3]: const void *
Parameter[4]: Length of the data to search for
Type[4]: size_t
Explanation:
Function: ustr_srch_case_buf_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to data to search for
Type[3]: const void *
Parameter[4]: Length of the data to search for
Type[4]: size_t
Explanation:
Function: ustr_srch_case_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, to search for
Type[3]: const struct Ustr *
Explanation:
Function: ustr_srch_case_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, to search for
Type[3]: const struct Ustr *
Explanation:
Function: ustr_srch_case_cstr_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to C-style string data, to search for
Type[3]: const char *
Explanation:
Function: ustr_srch_case_cstr_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to C-style string data, to search for
Type[3]: const char *
Explanation:
Function: ustr_srch_case_subustr_fwd()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Position in the Ustr
Type[4]: size_t
Parameter[5]: Length of data to search, from the Ustr
Type[5]: size_t
Explanation:
Function: ustr_srch_case_subustr_rev()
Returns: Position in the Ustr, or zero if not found
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start searching at
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Position in the Ustr
Type[4]: size_t
Parameter[5]: Length of data to search, from the Ustr
Type[5]: size_t
Explanation:
Span lengths of data in a Ustr
Function: ustr_spn_chr_fwd()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: Byte data
Type[3]: char
Explanation:
Function: ustr_spn_chr_rev()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: Byte data
Type[3]: char
Explanation:
Function: ustr_spn_chrs_fwd()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: Array of byte data, for spanning
Type[3]: const char *
Parameter[4]: Length of byte data, for spanning
Type[4]: size_t
Explanation:
Function: ustr_spn_chrs_rev()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: Array of byte data
Type[3]: const char *
Parameter[4]: Length of byte data
Type[4]: size_t
Explanation:
Function: ustr_spn_fwd()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, containing spanning bytes
Type[3]: const struct Ustr *
Explanation:
Function: ustr_spn_rev()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, containing spanning bytes
Type[3]: const struct Ustr *
Explanation:
Function: ustr_spn_cstr_fwd()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string, containing spanning bytes
Type[3]: const char *
Explanation:
Function: ustr_spn_cstr_rev()
Returns: Number of bytes in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string, containing spanning bytes
Type[3]: const char *
Explanation:
Function: ustr_cspn_chr_fwd()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: Byte data
Type[3]: char
Explanation:
Function: ustr_cspn_chr_rev()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: Byte data
Type[3]: char
Explanation:
Function: ustr_cspn_chrs_fwd()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: Array of byte data
Type[3]: const char *
Parameter[4]: Length of byte data
Type[4]: size_t
Explanation:
Function: ustr_cspn_chrs_rev()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: Array of byte data
Type[3]: const char *
Parameter[4]: Length of byte data
Type[4]: size_t
Explanation:
Function: ustr_cspn_fwd()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, containing spanning bytes
Type[3]: const struct Ustr *
Explanation:
Function: ustr_cspn_rev()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string, containing spanning bytes
Type[3]: const struct Ustr *
Explanation:
Function: ustr_cspn_cstr_fwd()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string, containing spanning bytes
Type[3]: const char *
Explanation:
Function: ustr_cspn_cstr_rev()
Returns: Number of bytes not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string, containing spanning bytes
Type[3]: const char *
Explanation:
Function: ustr_utf8_spn_chrs_fwd()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style UTF-8 string
Type[3]: const char *
Parameter[4]: Length of the C-style UTF-8 string
Type[4]: size_t
Explanation:
Note:
Function: ustr_utf8_spn_chrs_rev()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style UTF-8 string
Type[3]: const char *
Parameter[4]:
Type[4]: size_t
Explanation:
Note:
Function: ustr_utf8_spn_fwd()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr UTF-8 string
Type[3]: const struct Ustr *
Explanation:
Note:
Function: ustr_utf8_spn_rev()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr UTF-8 string
Type[3]: const struct Ustr *
Explanation:
Note:
Function: ustr_utf8_spn_cstr_fwd()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style UTF-8 string
Type[3]: const char *
Explanation:
Note:
Function: ustr_utf8_spn_cstr_rev()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style UTF-8 string
Type[3]: const char *
Explanation:
Note:
Function: ustr_utf8_cspn_chrs_fwd()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style UTF-8 string
Type[3]: const char *
Parameter[4]: Length of the C-style UTF-8 string
Type[4]: size_t
Explanation:
Note:
Function: ustr_utf8_cspn_chrs_rev()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style UTF-8 string
Type[3]: const char *
Parameter[4]: Length of the C-style UTF-8 string
Type[4]: size_t
Explanation:
Note:
Function: ustr_utf8_cspn_fwd()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr UTF-8 string, containing spanning data
Type[3]: const struct Ustr *
Explanation:
Note:
Function: ustr_utf8_cspn_rev()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to constant Ustr UTF-8 string data, containing spanning data
Type[3]: const struct Ustr *
Explanation:
Note:
Function: ustr_utf8_cspn_cstr_fwd()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to constant C-style UTF-8 string data, containing spanning data
Type[3]: const char *
Explanation:
Note:
Function: ustr_utf8_cspn_cstr_rev()
Returns: Number of UTF-8 characters not in the span
Type: size_t
Parameter[1]: A pointer to a constant Ustr UTF-8 string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string, in UTF-8 characters, to start compliment spanning from
Type[2]: size_t
Parameter[3]: A pointer to C-style UTF-8 string data, containing spanning data
Type[3]: const char *
Explanation:
Note:
Doing IO from or to a Ustr
Function: ustr_io_get()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Parameter[3]: Number of bytes to read
Type[3]: size_t
Parameter[4]: Returned number of bytes read
Type[4]: size_t *
Explanation:
Function: ustr_io_getfile()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Explanation:
Note:
Function: ustr_io_getfilename()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A C-style string of a filename
Type[2]: const char *
Explanation:
Function: ustr_io_getdelim()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Parameter[3]: A delimiter byte to stop reading at
Type[3]: char
Explanation:
Note:
Function: ustr_io_getline()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Explanation:
Function: ustr_io_put()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Parameter[3]: Number of bytes to write
Type[3]: size_t
Explanation:
Note:
Function: ustr_io_putline()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Parameter[3]: Number of bytes to write
Type[3]: size_t
Explanation:
Note:
Function: ustr_io_putfile()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Explanation:
Function: ustr_io_putfileline()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a C file object
Type[2]: FILE *
Explanation:
Function: ustr_io_putfilename()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A C-style string of a filename
Type[2]: const char *
Parameter[3]: A C-style string of a filemode (the second argument to fopen)
Type[3]: const char *
Explanation:
Note:
String substitution/replacement
Function: ustr_sub_undef()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of undefined data
Type[3]: size_t
Explanation:
Note:
Function: ustr_sub_buf()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Buffer containing substitution string
Type[3]: const void *
Parameter[4]: Length of buffer
Type[4]: size_t
Explanation:
Function: ustr_sub_cstr()
Returns: success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A pointer to a constant C-style string, which is the substitution
Type[3]: const char *
Explanation:
Function: USTR_SUB_OSTR()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A constant C-style string
Type[3]: const char []
Explanation:
Function: USTR_SUB_OBJ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A symbol
Type[3]: ...
Explanation:
Note:
Function: ustr_sub()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Explanation:
Function: ustr_sub_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: A pointer to a constant Ustr string
Type[3]: const struct Ustr *
Parameter[4]: Position in the Ustr
Type[4]: size_t
Parameter[5]: Length to substitute from the Ustr
Type[5]: size_t
Explanation:
Function: ustr_sc_sub_undef()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: Length of undefined data
Type[4]: size_t
Explanation:
Function: ustr_sc_sub_buf()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: Buffer containting substitute data
Type[4]: const void *
Parameter[5]: Length of Buffer
Type[5]: size_t
Explanation:
Function: ustr_sc_sub_cstr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start replacement
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: A pointer to a constant C-style string, containing spanning bytes
Type[4]: const char *
Explanation:
Function: ustr_sc_sub()
Returns: success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: Pointer to a Ustr containing the substitute string
Type[4]: const struct Ustr *
Explanation:
Function: ustr_sc_sub_subustr()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: A pointer to a constant Ustr string
Type[4]: const struct Ustr *
Parameter[5]: Position in the Ustr
Type[5]: size_t
Parameter[6]: Length to substitute from the Ustr
Type[6]: size_t
Explanation:
Function: USTR_SC_SUB_OSTR()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: A constant C-style string
Type[4]: const char []
Explanation:
Function: USTR_SC_SUB_OBJ()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Position where to start substitution
Type[2]: size_t
Parameter[3]: Length of substitution
Type[3]: size_t
Parameter[4]: A symbol
Type[4]: ...
Explanation:
Note:
Function: ustr_replace_buf()
Returns: Number of tokens replaced
Type: size_t
Parameter[1]: Pointer to a pointer to a Ustr (haystack)
Type[1]: struct Ustr **
Parameter[2]: Buffer containting search data
Type[2]: const void *
Parameter[3]: Length of search buffer
Type[3]: size_t
Parameter[4]: Buffer containting replacement data
Type[4]: const void *
Parameter[5]: Length of replacement buffer
Type[5]: size_t
Parameter[6]: Maximum number of matches to replace (0 for unlimited)
Type[6]: size_t
Explanation:
Note:
Function: ustr_replace_cstr()
Returns: Number of tokens replaced
Type: size_t
Parameter[1]: Pointer to a pointer to a Ustr (haystack)
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string, containing search bytes
Type[2]: const char *
Parameter[3]: A pointer to a constant C-style string, containing replacement bytes
Type[3]: const char *
Parameter[4]: Maximum number of matches to replace (0 for unlimited)
Type[4]: size_t
Explanation:
Function: ustr_replace()
Returns: Number of tokens replaced
Type: int
Parameter[1]: Pointer to a pointer to a Ustr (haystack)
Type[1]: struct Ustr **
Parameter[2]: Ustr to search for (needle)
Type[2]: const struct Ustr *
Parameter[3]: Ustr to replace needle with
Type[3]: const struct Ustr *
Parameter[4]: Maximum number of matches to replace (0 for unlimited)
Type[4]: size_t
Explanation:
Function: ustr_replace_rep_chr()
Returns: number of replacements made
Type: size_t
Parameter[1]: pointer to a pointer to a Ustr to be modified
Type[1]: struct Ustr **ps1
Parameter[2]: character to replace
Type[2]: char
Parameter[3]: number of characters to replace
Type[3]: size_t
Parameter[4]: character to replace with
Type[4]: char
Parameter[5]: number of characters to replace with
Type[5]: size_t nlen
Parameter[6]: maximum number of replacements to make (use 0 for unlimited)
Type[6]: size_t lim
Explanation:
Note:
Splitting a Ustr
Function: ustr_split_buf()
Returns: pointer to a Ustr representing the next token
Type: struct Ustr *
Parameter[1]: Pointer to a constant Ustr to be split
Type[1]: const struct Ustr *
Parameter[2]: Pointer to an offset
Type[2]: size_t *
Parameter[3]: Buffer to use as split search pattern
Type[3]: const void *
Parameter[4]: Length of buffer
Type[4]: size_t
Parameter[5]: Pointer to a Ustr to be used as the return value
Type[5]: struct Ustr *
Parameter[6]: Flags with the prefix USTR_FLAG_SPLIT_
Type[6]: unsigned int
Explanation:
ustr_free(tok);
Note:
Function: ustr_split()
Returns: Pointer to a Ustr representing the next token
Type: struct Ustr *
Parameter[1]: Pointer to a constant Ustr to be split
Type[1]: const struct Ustr *
Parameter[2]: Pointer to an offset variable
Type[2]: size_t *
Parameter[3]: Pointer to a constant Ustr to use as the split search pattern
Type[3]: const struct Ustr *
Parameter[4]: Pointer to a Ustr where the return value will be placed
Type[4]: struct Ustr *
Parameter[5]: Flags
Type[5]: unsigned int
Explanation:
Works like ustr_split_buf()
Function: ustr_split_cstr()
Returns: Pointer to a Ustr representing the next token
Type: struct Ustr *
Parameter[1]: Pointer to a constant Ustr to be split
Type[1]: const struct Ustr *
Parameter[2]: Pointer to an offset variable
Type[2]: size_t *
Parameter[3]: C string to use as split search pattern
Type[3]: const char *
Parameter[4]: Pointer to a Ustr where the return value will be placed
Type[4]: struct Ustr *
Parameter[5]: Flags
Type[5]: unsigned int
Explanation:
Function: ustr_split_spn_chrs()
Returns: Pointer to a Ustr representing the next token
Type: struct Ustr *
Parameter[1]: Pointer to a Ustr to be split
Type[1]: const struct Ustr *
Parameter[2]: Pointer to an offset variable
Type[2]: size_t *
Parameter[3]: String representing a set of bytes to use as split chars
Type[3]: const char *
Parameter[4]: Length of the string of set of bytes
Type[4]: size_t
Parameter[5]: Pointer to a Ustr where the return value will be placed
Type[5]: struct Ustr *
Parameter[6]: flags
Type[6]: unsigned int
Explanation:
Note:
Function: ustr_split_spn_cstr()
Returns: Pointer to a Ustr representing the next token
Type: struct Ustr *
Parameter[1]: Pointer to a Ustr to be split
Type[1]: const struct Ustr *
Parameter[2]: Pointer to an offset variable
Type[2]: size_t *
Parameter[3]: String representing a set of bytes to use as split chars
Type[3]: const char *
Parameter[4]: Pointer to a Ustr where the return value will be placed
Type[4]: struct Ustr *
Parameter[5]: flags
Type[5]: unsigned int
Explanation:
Function: ustr_split_spn()
Returns: Pointer to a Ustr representing the next token
Type: struct Ustr *
Parameter[1]: Pointer to a constant Ustr to be split
Type[1]: const struct Ustr *
Parameter[2]: Pointer to an offset variable
Type[2]: size_t *
Parameter[3]: Pointer to a constant Ustr to use as the split search pattern
Type[3]: const struct Ustr *
Parameter[4]: Pointer to a Ustr where the return value will be placed
Type[4]: struct Ustr *
Parameter[5]: Flags
Type[5]: unsigned int
Explanation:
Dealing with UTF-8 in a Ustr
Function: ustr_utf8_valid()
Returns: A boolean flag of either USTR_TRUE or USTR_FALSE
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_utf8_len()
Returns: The number of the utf-8 characters in the Ustr
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Note:
Function: ustr_utf8_width()
Returns: ssize_t
Type: ssize_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Explanation:
Function: ustr_utf8_chars2bytes()
Returns: Length of span in bytes
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Position of a span in utf-8 characters
Type[2]: size_t
Parameter[3]: Length of a span in utf-8 characters
Type[3]: size_t
Parameter[4]: Returns the position of the span in bytes
Type[4]: size_t *
Explanation:
Function: ustr_utf8_bytes2chars()
Returns: Returns the position of a span in utf-8 characters
Type: size_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Position of a span in bytes
Type[2]: size_t
Parameter[3]: Length of a span in bytes
Type[3]: size_t
Parameter[4]: Returns length of a span in utf-8 characters
Type[4]: size_t *
Explanation:
Note:
Function: ustr_sc_utf8_reverse()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Parsing ASCII integer numbers from a Ustr
Function: ustr_parse_uintmaxx()
Returns: Parsed number, or zero on error
Type: uintmax_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Absolute minimum value
Type[4]: uintmax_t
Parameter[5]: Absolute maximum value
Type[5]: uintmax_t
Parameter[6]: Thousands separator
Type[6]: const char *
Parameter[7]: Return length of parsed number
Type[7]: size_t *
Parameter[8]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[8]: unsigned int *
Explanation:
Note:
Function: ustr_parse_uintmax()
Returns: Parsed number, or zero on error
Type: uintmax_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Note:
Function: ustr_parse_intmax()
Returns: Parsed number, or zero on error
Type: intmax_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Note:
Function: ustr_parse_ulongx()
Returns: Parsed number, or zero on error
Type: unsigned long
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Absolute minimum value
Type[4]: unsigned long
Parameter[5]: Absolute maximum value
Type[5]: unsigned long
Parameter[6]: Thousands separator
Type[6]: const char *
Parameter[7]: Return length of parsed number
Type[7]: size_t *
Parameter[8]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[8]: unsigned int *
Explanation:
Function: ustr_parse_ulong()
Returns: Parsed number, or zero on error
Type: unsigned long
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Function: ustr_parse_long()
Returns: Parsed number, or zero on error
Type: long
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Function: ustr_parse_uint()
Returns: Parsed number, or zero on error
Type: unsigned int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Function: ustr_parse_int()
Returns: Parsed number, or zero on error
Type: int
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Function: ustr_parse_ushort()
Returns: Parsed number, or zero on error
Type: unsigned short
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Function: ustr_parse_short()
Returns: Parsed number, or zero on error
Type: short
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Parameter[3]: Base (2-36) and flags, starting with USTR_FLAG_PARSE_NUM_
Type[3]: unsigned int
Parameter[4]: Return length of parsed number
Type[4]: size_t *
Parameter[5]: Return error code, starting with USTR_TYPE_PARSE_NUM_ERR_
Type[5]: unsigned int *
Explanation:
Misc shortcut helper functions for Ustrs
Function: ustr_sc_ensure_owner()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_sc_wstr()
Returns: Writable pointer to the start of data in the Ustr, or NULL
Type: char *
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_sc_export_subustr()
Returns: A pointer to newly allocated block of memory
Type: char *
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Position in the Ustr
Type[2]: size_t
Parameter[3]: Length to export from the Ustr
Type[3]: size_t
Parameter[4]: Allocation function (like malloc)
Type[4]: void *(*)(size_t)
Explanation:
Function: ustr_sc_export()
Returns: A pointer to newly allocated block of memory
Type: char *
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Allocation function (like malloc)
Type[2]: void *(*)(size_t)
Explanation:
Function: ustrp_sc_export_subustrp()
Returns: A pointer to newly allocated block of memory
Type: char *
Parameter[1]: Pointer to a Ustr pool object
Type[1]: struct Ustr_pool *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Position in the Ustr
Type[3]: size_t
Parameter[4]: Length to export from the Ustr
Type[4]: size_t
Parameter[5]: Allocation function (like malloc), or NULL
Type[5]: void *(*)(size_t)
Explanation:
Function: ustrp_sc_export()
Returns: A pointer to newly allocated block of memory
Type: char *
Parameter[1]: Pointer to a Ustr pool object
Type[1]: struct Ustr_pool *
Parameter[2]: A pointer to a constant Ustr string
Type[2]: const struct Ustr *
Parameter[3]: Allocation function (like malloc)
Type[3]: void *(*)(size_t)
Explanation:
Function: ustr_sc_reverse()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_sc_tolower()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_sc_toupper()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Explanation:
Function: ustr_sc_ltrim_chrs()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Array of bytes, containing trimming data
Type[2]: const char *
Parameter[3]: Length of byte data
Type[3]: size_t
Explanation:
Function: ustr_sc_ltrim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string, containing trimming bytes
Type[2]: const struct Ustr *
Explanation:
Function: ustr_sc_ltrim_cstr()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string, containing trimming bytes
Type[2]: const char *
Explanation:
Function: ustr_sc_rtrim_chrs()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Array of bytes, containing trimming data
Type[2]: const char *
Parameter[3]: Length of byte data
Type[3]: size_t
Explanation:
Function: ustr_sc_rtrim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string, containing trimming bytes
Type[2]: const struct Ustr *
Explanation:
Function: ustr_sc_rtrim_cstr()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string, containing trimming bytes
Type[2]: const char *
Explanation:
Function: ustr_sc_trim_chrs()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Array of bytes, containing trimming data
Type[2]: const char *
Parameter[3]: Length of byte data
Type[3]: size_t
Explanation:
Note:
Function: ustr_sc_trim()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant Ustr string, containing trimming bytes
Type[2]: const struct Ustr *
Explanation:
Function: ustr_sc_trim_cstr()
Returns: Success or failure
Type: int
Parameter[1]: A pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: A pointer to a constant C-style string, containing trimming bytes
Type[2]: const char *
Explanation:
Adding binary data to a Ustr
Function: ustr_add_b_uint16()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Binary value to add to the Ustr
Type[2]: uint_least16_t
Explanation:
Function: ustr_add_b_uint32()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Binary value to add to the Ustr
Type[2]: uint_least32_t
Explanation:
Function: ustr_add_b_uint64()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Binary value to add to the Ustr
Type[2]: uint_least64_t
Explanation:
Parsing binary data from a Ustr
Function: ustr_parse_b_uint16()
Returns: uint_least16_t
Type: uint_least16_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Explanation:
Function: ustr_parse_b_uint32()
Returns: uint_least32_t
Type: uint_least32_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Explanation:
Function: ustr_parse_b_uint64()
Returns: uint_least64_t
Type: uint_least64_t
Parameter[1]: A pointer to a constant Ustr string
Type[1]: const struct Ustr *
Parameter[2]: Offset within string to start parsing at
Type[2]: size_t
Explanation:
Misc. functions
Function: ustr_realloc()
Returns: Success or failure
Type: int
Parameter[1]: Pointer to a pointer to a Ustr string
Type[1]: struct Ustr **
Parameter[2]: Size of allocation
Type[2]: size_t
Explanation:
Note:
Function: ustr_cntl_opt()
Returns: Success or failure
Type: int
Parameter[1]: Optional value starting with USTR_CNTL_OPT_
Type[1]: int
Parameter[2]: Arugments to option
Type[2]: ...
Explanation:
Simple Ustr pool API
Function: ustr_pool_ll_make()
Returns: Pointer to a Ustr pool object
Type: struct Ustr_pool *
Parameter[1]: Nothing
Type[1]: void
Explanation:
Function: ustr_pool_make_subpool()
Returns: Pointer to a Ustr pool object
Type: struct Ustr_pool *
Parameter[1]: struct Ustr_pool *
Type[1]: struct Ustr_pool *
Explanation:
Function: ustr_pool_free()
Returns: Nothing
Type: void
Parameter[1]: Pointer to a Ustr pool object
Type[1]: struct Ustr_pool *
Explanation:
Note:
Function: ustr_pool_clear()
Returns: Nothing
Type: void
Parameter[1]: Pointer to a Ustr pool object
Type[1]: struct Ustr_pool *
Explanation:
Note: