ReactOS 0.4.15-dev-7906-g1b85a5f
triostr.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "triodef.h"
#include "triostr.h"
Include dependency graph for triostr.c:

Go to the source code of this file.

Classes

struct  _trio_string_t
 

Macros

#define TRIO_STRING_PRIVATE   TRIO_PRIVATE
 
#define NULL   0
 
#define NIL   ((char)0)
 
#define FALSE   (1 == 0)
 
#define TRUE   (! FALSE)
 
#define BOOLEAN_T   int
 
#define USE_TOLOWER
 
#define USE_TOUPPER
 

Functions

TRIO_STRING_PUBLIC char *trio_create TRIO_ARGS1 ((size), size_t size)
 
TRIO_STRING_PUBLIC void trio_destroy TRIO_ARGS1 ((string), char *string)
 
TRIO_STRING_PUBLIC size_t trio_length TRIO_ARGS1 ((string), TRIO_CONST char *string)
 
TRIO_STRING_PUBLIC int trio_append TRIO_ARGS2 ((target, source), char *target, TRIO_CONST char *source)
 
TRIO_STRING_PUBLIC int trio_append_max TRIO_ARGS3 ((target, max, source), char *target, size_t max, TRIO_CONST char *source)
 
TRIO_STRING_PUBLIC int trio_contains TRIO_ARGS2 ((string, substring), TRIO_CONST char *string, TRIO_CONST char *substring)
 
TRIO_STRING_PRIVATE char *TrioDuplicateMax TRIO_ARGS2 ((source, size), TRIO_CONST char *source, size_t size)
 
TRIO_STRING_PUBLIC char *trio_duplicate TRIO_ARGS1 ((source), TRIO_CONST char *source)
 
TRIO_STRING_PUBLIC char *trio_duplicate_max TRIO_ARGS2 ((source, max), TRIO_CONST char *source, size_t max)
 
TRIO_STRING_PUBLIC int trio_equal TRIO_ARGS2 ((first, second), TRIO_CONST char *first, TRIO_CONST char *second)
 
TRIO_STRING_PUBLIC int trio_equal_case_max TRIO_ARGS3 ((first, max, second), TRIO_CONST char *first, size_t max, TRIO_CONST char *second)
 
TRIO_STRING_PUBLIC TRIO_CONST char *trio_error TRIO_ARGS1 ((error_number), int error_number)
 
TRIO_STRING_PUBLIC size_t trio_format_date_max TRIO_ARGS4 ((target, max, format, datetime), char *target, size_t max, TRIO_CONST char *format, TRIO_CONST struct tm *datetime)
 
TRIO_STRING_PUBLIC unsigned long trio_hash TRIO_ARGS2 ((string, type), TRIO_CONST char *string, int type)
 
TRIO_STRING_PUBLIC char *trio_index TRIO_ARGS2 ((string, character), TRIO_CONST char *string, int character)
 
TRIO_STRING_PUBLIC int trio_lower TRIO_ARGS1 ((target), char *target)
 
TRIO_STRING_PUBLIC int trio_match TRIO_ARGS2 ((string, pattern), TRIO_CONST char *string, TRIO_CONST char *pattern)
 
TRIO_STRING_PUBLIC size_t trio_span_function TRIO_ARGS3 ((target, source, Function), char *target, TRIO_CONST char *source, int(*Function) TRIO_PROTO((int)))
 
TRIO_STRING_PUBLIC char *trio_substring_max TRIO_ARGS3 ((string, max, substring), TRIO_CONST char *string, size_t max, TRIO_CONST char *substring)
 
TRIO_STRING_PUBLIC char *trio_tokenize TRIO_ARGS2 ((string, delimiters), char *string, TRIO_CONST char *delimiters)
 
TRIO_STRING_PUBLIC trio_long_double_t trio_to_long_double TRIO_ARGS2 ((source, endp), TRIO_CONST char *source, char **endp)
 
TRIO_STRING_PUBLIC long trio_to_long TRIO_ARGS3 ((string, endp, base), TRIO_CONST char *string, char **endp, int base)
 
TRIO_STRING_PUBLIC int trio_to_lower TRIO_ARGS1 ((source), int source)
 
TRIO_STRING_PRIVATE trio_string_tTrioStringAlloc (TRIO_NOARGS)
 
TRIO_STRING_PRIVATE BOOLEAN_T TrioStringGrow TRIO_ARGS2 ((self, delta), trio_string_t *self, size_t delta)
 
TRIO_STRING_PRIVATE BOOLEAN_T TrioStringGrowTo TRIO_ARGS2 ((self, length), trio_string_t *self, size_t length)
 
TRIO_STRING_PUBLIC trio_string_t *trio_string_create TRIO_ARGS1 ((initial_size), int initial_size)
 
TRIO_STRING_PUBLIC void trio_string_destroy TRIO_ARGS1 ((self), trio_string_t *self)
 
TRIO_STRING_PUBLIC char *trio_string_get TRIO_ARGS2 ((self, offset), trio_string_t *self, int offset)
 
TRIO_STRING_PUBLIC void trio_xstring_set TRIO_ARGS2 ((self, buffer), trio_string_t *self, char *buffer)
 
TRIO_STRING_PUBLIC int trio_string_append TRIO_ARGS2 ((self, other), trio_string_t *self, trio_string_t *other)
 
TRIO_STRING_PUBLIC int trio_xstring_append TRIO_ARGS2 ((self, other), trio_string_t *self, TRIO_CONST char *other)
 
TRIO_STRING_PUBLIC int trio_xstring_append_char TRIO_ARGS2 ((self, character), trio_string_t *self, char character)
 
TRIO_STRING_PUBLIC trio_string_t *trio_string_duplicate TRIO_ARGS1 ((other), trio_string_t *other)
 
TRIO_STRING_PUBLIC trio_string_t *trio_xstring_duplicate TRIO_ARGS1 ((other), TRIO_CONST char *other)
 
TRIO_STRING_PUBLIC int trio_string_equal_max TRIO_ARGS3 ((self, max, other), trio_string_t *self, size_t max, trio_string_t *other)
 
TRIO_STRING_PUBLIC int trio_xstring_equal_max TRIO_ARGS3 ((self, max, other), trio_string_t *self, size_t max, TRIO_CONST char *other)
 
TRIO_STRING_PUBLIC size_t trio_string_format_date_max TRIO_ARGS4 ((self, max, format, datetime), trio_string_t *self, size_t max, TRIO_CONST char *format, TRIO_CONST struct tm *datetime)
 
TRIO_STRING_PUBLIC char *trio_string_index TRIO_ARGS2 ((self, character), trio_string_t *self, int character)
 

Variables

static TRIO_CONST char rcsid [] = "@(#)$Id$"
 

Macro Definition Documentation

◆ BOOLEAN_T

#define BOOLEAN_T   int

Definition at line 52 of file triostr.c.

◆ FALSE

#define FALSE   (1 == 0)

Definition at line 48 of file triostr.c.

◆ NIL

#define NIL   ((char)0)

Definition at line 45 of file triostr.c.

◆ NULL

#define NULL   0

Definition at line 42 of file triostr.c.

◆ TRIO_STRING_PRIVATE

#define TRIO_STRING_PRIVATE   TRIO_PRIVATE

Definition at line 38 of file triostr.c.

◆ TRUE

#define TRUE   (! FALSE)

Definition at line 49 of file triostr.c.

◆ USE_TOLOWER

#define USE_TOLOWER

Definition at line 90 of file triostr.c.

◆ USE_TOUPPER

#define USE_TOUPPER

Definition at line 91 of file triostr.c.

Variable Documentation

◆ rcsid

TRIO_CONST char rcsid[] = "@(#)$Id$"
static

Definition at line 110 of file triostr.c.