ReactOS 0.4.15-dev-7788-g1ad9096
triostr.h File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "triodef.h"
#include "triop.h"
Include dependency graph for triostr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRIO_STRING_PUBLIC   TRIO_PUBLIC
 

Typedefs

typedef struct _trio_string_t trio_string_t
 

Enumerations

enum  { TRIO_HASH_NONE = 0 , TRIO_HASH_PLAIN , TRIO_HASH_TWOSIGNED }
 

Functions

TRIO_STRING_PUBLIC int trio_copy_max TRIO_PROTO ((char *target, size_t max, const char *source))
 
TRIO_STRING_PUBLIC char *trio_create TRIO_PROTO ((size_t size))
 
TRIO_STRING_PUBLIC void trio_destroy TRIO_PROTO ((char *string))
 
TRIO_STRING_PUBLIC char *trio_duplicate TRIO_PROTO ((const char *source))
 
TRIO_STRING_PUBLIC int trio_equal TRIO_PROTO ((const char *first, const char *second))
 
TRIO_STRING_PUBLIC int trio_equal_max TRIO_PROTO ((const char *first, size_t max, const char *second))
 
TRIO_STRING_PUBLIC TRIO_CONST char *trio_error TRIO_PROTO ((int))
 
TRIO_STRING_PUBLIC size_t trio_length TRIO_PROTO ((const char *string))
 
TRIO_STRING_PUBLIC double trio_to_double TRIO_PROTO ((const char *source, char **endp))
 
TRIO_STRING_PUBLIC long trio_to_long TRIO_PROTO ((const char *source, char **endp, int base))
 
TRIO_STRING_PUBLIC int trio_to_upper TRIO_PROTO ((int source))
 
TRIO_STRING_PUBLIC int trio_append TRIO_PROTO ((char *target, const char *source))
 
TRIO_STRING_PUBLIC int trio_contains TRIO_PROTO ((const char *string, const char *substring))
 
TRIO_STRING_PUBLIC char *trio_duplicate_max TRIO_PROTO ((const char *source, size_t max))
 
TRIO_STRING_PUBLIC size_t trio_format_date_max TRIO_PROTO ((char *target, size_t max, const char *format, const struct tm *datetime))
 
TRIO_STRING_PUBLIC unsigned long trio_hash TRIO_PROTO ((const char *string, int type))
 
TRIO_STRING_PUBLIC char *trio_index TRIO_PROTO ((const char *string, int character))
 
TRIO_STRING_PUBLIC int trio_lower TRIO_PROTO ((char *target))
 
TRIO_STRING_PUBLIC int trio_match TRIO_PROTO ((const char *string, const char *pattern))
 
TRIO_STRING_PUBLIC size_t trio_span_function TRIO_PROTO ((char *target, const char *source, int(*Function) TRIO_PROTO((int))))
 
TRIO_STRING_PUBLIC char *trio_substring_max TRIO_PROTO ((const char *string, size_t max, const char *substring))
 
TRIO_STRING_PUBLIC char *trio_tokenize TRIO_PROTO ((char *string, const char *delimiters))
 
TRIO_STRING_PUBLIC void trio_string_destroy TRIO_PROTO ((trio_string_t *self))
 
TRIO_STRING_PUBLIC int trio_xstring_append_char TRIO_PROTO ((trio_string_t *self, char character))
 
TRIO_STRING_PUBLIC trio_string_t *trio_xstring_duplicate TRIO_PROTO ((const char *other))
 
TRIO_STRING_PUBLIC trio_string_t *trio_string_create TRIO_PROTO ((int initial_size))
 
TRIO_STRING_PUBLIC char *trio_string_get TRIO_PROTO ((trio_string_t *self, int offset))
 
TRIO_STRING_PUBLIC void trio_xstring_set TRIO_PROTO ((trio_string_t *self, char *buffer))
 
TRIO_STRING_PUBLIC int trio_string_append TRIO_PROTO ((trio_string_t *self, trio_string_t *other))
 
TRIO_STRING_PUBLIC trio_string_t *trio_string_duplicate TRIO_PROTO ((trio_string_t *other))
 
TRIO_STRING_PUBLIC int trio_string_equal_max TRIO_PROTO ((trio_string_t *self, size_t max, trio_string_t *second))
 
TRIO_STRING_PUBLIC int trio_string_equal_case_max TRIO_PROTO ((trio_string_t *self, size_t max, trio_string_t *other))
 
TRIO_STRING_PUBLIC size_t trio_string_format_date_max TRIO_PROTO ((trio_string_t *self, size_t max, const char *format, const struct tm *datetime))
 
TRIO_STRING_PUBLIC char *trio_string_index TRIO_PROTO ((trio_string_t *self, int character))
 
TRIO_STRING_PUBLIC int trio_xstring_append TRIO_PROTO ((trio_string_t *self, const char *other))
 
TRIO_STRING_PUBLIC int trio_xstring_equal_max TRIO_PROTO ((trio_string_t *self, size_t max, const char *other))
 

Macro Definition Documentation

◆ TRIO_STRING_PUBLIC

#define TRIO_STRING_PUBLIC   TRIO_PUBLIC

Definition at line 38 of file triostr.h.

Typedef Documentation

◆ trio_string_t

Definition at line 96 of file triostr.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRIO_HASH_NONE 
TRIO_HASH_PLAIN 
TRIO_HASH_TWOSIGNED 

Definition at line 28 of file triostr.h.

28 {
32};
@ TRIO_HASH_NONE
Definition: triostr.h:29
@ TRIO_HASH_PLAIN
Definition: triostr.h:30
@ TRIO_HASH_TWOSIGNED
Definition: triostr.h:31

Function Documentation

◆ TRIO_PROTO() [1/36]

TRIO_STRING_PUBLIC void trio_destroy TRIO_PROTO ( (char *string )

◆ TRIO_PROTO() [2/36]

TRIO_STRING_PUBLIC char *trio_tokenize TRIO_PROTO ( (char *string, const char *delimiters)  )

◆ TRIO_PROTO() [3/36]

TRIO_STRING_PUBLIC int trio_lower TRIO_PROTO ( (char *target )

◆ TRIO_PROTO() [4/36]

TRIO_STRING_PUBLIC int trio_append TRIO_PROTO ( (char *target, const char *source )

◆ TRIO_PROTO() [5/36]

TRIO_STRING_PUBLIC size_t trio_span_function TRIO_PROTO ( (char *target, const char *source, int(*Function) TRIO_PROTO((int)))  )

◆ TRIO_PROTO() [6/36]

TRIO_STRING_PUBLIC size_t trio_format_date_max TRIO_PROTO ( (char *target, size_t max, const char *format, const struct tm *datetime)  )

◆ TRIO_PROTO() [7/36]

TRIO_STRING_PUBLIC int trio_copy_max TRIO_PROTO ( (char *target, size_t max, const char *source )

◆ TRIO_PROTO() [8/36]

TRIO_STRING_PUBLIC int trio_equal TRIO_PROTO ( (const char *first, const char *second)  )

◆ TRIO_PROTO() [9/36]

TRIO_STRING_PUBLIC int trio_equal_max TRIO_PROTO ( (const char *first, size_t max, const char *second)  )

◆ TRIO_PROTO() [10/36]

TRIO_STRING_PUBLIC trio_string_t *trio_xstring_duplicate TRIO_PROTO ( (const char *other )

◆ TRIO_PROTO() [11/36]

TRIO_STRING_PUBLIC char *trio_duplicate TRIO_PROTO ( (const char *source )

◆ TRIO_PROTO() [12/36]

TRIO_STRING_PUBLIC double trio_to_double TRIO_PROTO ( (const char *source, char **endp)  )

◆ TRIO_PROTO() [13/36]

TRIO_STRING_PUBLIC long trio_to_long TRIO_PROTO ( (const char *source, char **endp, int base )

◆ TRIO_PROTO() [14/36]

TRIO_STRING_PUBLIC char *trio_duplicate_max TRIO_PROTO ( (const char *source, size_t max )

◆ TRIO_PROTO() [15/36]

TRIO_STRING_PUBLIC size_t trio_length TRIO_PROTO ( (const char *string )

◆ TRIO_PROTO() [16/36]

TRIO_STRING_PUBLIC int trio_match TRIO_PROTO ( (const char *string, const char *pattern )

◆ TRIO_PROTO() [17/36]

TRIO_STRING_PUBLIC int trio_contains TRIO_PROTO ( (const char *string, const char *substring)  )

◆ TRIO_PROTO() [18/36]

TRIO_STRING_PUBLIC char *trio_index TRIO_PROTO ( (const char *string, int character)  )

◆ TRIO_PROTO() [19/36]

TRIO_STRING_PUBLIC unsigned long trio_hash TRIO_PROTO ( (const char *string, int type )

◆ TRIO_PROTO() [20/36]

TRIO_STRING_PUBLIC char *trio_substring_max TRIO_PROTO ( (const char *string, size_t max, const char *substring)  )

◆ TRIO_PROTO() [21/36]

TRIO_STRING_PUBLIC trio_string_t *trio_string_create TRIO_PROTO ( (int initial_size)  )

◆ TRIO_PROTO() [22/36]

TRIO_STRING_PUBLIC int trio_to_upper TRIO_PROTO ( (int source )

◆ TRIO_PROTO() [23/36]

TRIO_STRING_PUBLIC TRIO_CONST char *trio_error TRIO_PROTO ( (int )

◆ TRIO_PROTO() [24/36]

TRIO_STRING_PUBLIC char *trio_create TRIO_PROTO ( (size_t size )

◆ TRIO_PROTO() [25/36]

TRIO_STRING_PUBLIC trio_string_t *trio_string_duplicate TRIO_PROTO ( (trio_string_t *other )

◆ TRIO_PROTO() [26/36]

TRIO_STRING_PUBLIC void trio_string_destroy TRIO_PROTO ( (trio_string_t *self)  )

◆ TRIO_PROTO() [27/36]

TRIO_STRING_PUBLIC void trio_xstring_set TRIO_PROTO ( (trio_string_t *self, char *buffer )

◆ TRIO_PROTO() [28/36]

TRIO_STRING_PUBLIC int trio_xstring_append_char TRIO_PROTO ( (trio_string_t *self, char character)  )

◆ TRIO_PROTO() [29/36]

TRIO_STRING_PUBLIC int trio_xstring_append TRIO_PROTO ( (trio_string_t *self, const char *other )

◆ TRIO_PROTO() [30/36]

TRIO_STRING_PUBLIC char *trio_string_index TRIO_PROTO ( (trio_string_t *self, int character)  )

◆ TRIO_PROTO() [31/36]

TRIO_STRING_PUBLIC char *trio_string_get TRIO_PROTO ( (trio_string_t *self, int offset )

◆ TRIO_PROTO() [32/36]

TRIO_STRING_PUBLIC size_t trio_string_format_date_max TRIO_PROTO ( (trio_string_t *self, size_t max, const char *format, const struct tm *datetime)  )

◆ TRIO_PROTO() [33/36]

TRIO_STRING_PUBLIC int trio_xstring_equal_max TRIO_PROTO ( (trio_string_t *self, size_t max, const char *other )

◆ TRIO_PROTO() [34/36]

TRIO_STRING_PUBLIC int trio_string_equal_case_max TRIO_PROTO ( (trio_string_t *self, size_t max, trio_string_t *other )

◆ TRIO_PROTO() [35/36]

TRIO_STRING_PUBLIC int trio_string_equal_max TRIO_PROTO ( (trio_string_t *self, size_t max, trio_string_t *second)  )

◆ TRIO_PROTO() [36/36]

TRIO_STRING_PUBLIC int trio_string_append TRIO_PROTO ( (trio_string_t *self, trio_string_t *other )