FreeBASIC  0.91.0
dstr.bas File Reference
#include "fb.bi"
#include "fbint.bi"
#include "dstr.bi"
Include dependency graph for dstr.bas:

Go to the source code of this file.

Macros

#define ALLOC_SETUP(dst, chars, _type)
 
#define REALLOC_SETUP(dst, chars, _type)
 
#define CALC_LEN(p)   /* iif( p <> NULL, len( *src ), 0 ) */
 

Functions

sub hRealloc (byval_as_DSTRING_ptr s, byval_as_integer chars, byval_as_integer charsize, byval_as_integer dopreserve)
 
sub DZstrZero (byref_as_DZSTRING dst)
 
sub DZstrAllocate (byref_as_DZSTRING dst, byval_as_integer chars)
 
sub DZstrReset (byref_as_DZSTRING dst)
 
sub DZstrAssign (byref_as_DZSTRING dst, byval_as_zstring_ptr src)
 
sub DZstrAssignW (byref_as_DZSTRING dst, byval_as_wstring_ptr src)
 
sub DZstrAssignC (byref_as_DZSTRING dst, byval_as_uinteger src)
 
sub DZstrConcatAssign (byref_as_DZSTRING dst, byval_as_zstring_ptr src)
 
sub DZstrConcatAssignW (byref_as_DZSTRING dst, byval_as_wstring_ptr src)
 
sub DZstrConcatAssignC (byref_as_DZSTRING dst, byval_as_uinteger src)
 
sub DWstrZero (byref_as_DWSTRING dst)
 
sub DWstrAllocate (byref_as_DWSTRING dst, byval_as_integer chars)
 
sub DWstrReset (byref_as_DWSTRING dst)
 
sub DWstrAssign (byref_as_DWSTRING dst, byval_as_wstring_ptr src)
 
sub DWstrAssignA (byref_as_DWSTRING dst, byval_as_zstring_ptr src)
 
sub DWstrAssignC (byref_as_DWSTRING dst, byval_as_uinteger src)
 
sub DWstrConcatAssign (byref_as_DWSTRING dst, byval_as_wstring_ptr src)
 
sub DWstrConcatAssignA (byref_as_DWSTRING dst, byval_as_zstring_ptr src)
 
sub DWstrConcatAssignC (byref_as_DWSTRING dst, byval_as_uinteger src)
 

Macro Definition Documentation

#define ALLOC_SETUP (   dst,
  chars,
  _type 
)
Value:
/* (multi line FreeBasic #MACRO)
if( chars = 0 ) then
if( dst.data <> NULL ) then
deallocate( dst.data )
dst.data = NULL
dst.len = 0
dst.size = 0
end if
exit sub
end if
if( dst.len <> chars ) then
hRealloc( cast( DSTRING ptr, @dst ), _
chars, _
len( _type ), _
FALSE )
end if
#endmacro */

Definition at line 20 of file dstr.bas.

#define CALC_LEN (   p)    /* iif( p <> NULL, len( *src ), 0 ) */

Definition at line 52 of file dstr.bas.

#define REALLOC_SETUP (   dst,
  chars,
  _type 
)
Value:
/* (multi line FreeBasic #MACRO)
if( chars = 0 ) then
exit sub
end if
hRealloc( cast( DSTRING ptr, @dst ), _
dst.len + chars, _
len( _type ), _
TRUE )
#endmacro */

Definition at line 40 of file dstr.bas.

Function Documentation

sub DWstrAllocate ( byref_as_DWSTRING  dst,
byval_as_integer  chars 
)

Definition at line 220 of file dstr.bas.

Here is the caller graph for this function:

sub DWstrAssign ( byref_as_DWSTRING  dst,
byval_as_wstring_ptr  src 
)

Definition at line 245 of file dstr.bas.

Here is the caller graph for this function:

sub DWstrAssignA ( byref_as_DWSTRING  dst,
byval_as_zstring_ptr  src 
)

Definition at line 262 of file dstr.bas.

Here is the caller graph for this function:

sub DWstrAssignC ( byref_as_DWSTRING  dst,
byval_as_uinteger  src 
)

Definition at line 279 of file dstr.bas.

sub DWstrConcatAssign ( byref_as_DWSTRING  dst,
byval_as_wstring_ptr  src 
)

Definition at line 297 of file dstr.bas.

Here is the caller graph for this function:

sub DWstrConcatAssignA ( byref_as_DWSTRING  dst,
byval_as_zstring_ptr  src 
)

Definition at line 315 of file dstr.bas.

Here is the caller graph for this function:

sub DWstrConcatAssignC ( byref_as_DWSTRING  dst,
byval_as_uinteger  src 
)

Definition at line 333 of file dstr.bas.

sub DWstrReset ( byref_as_DWSTRING  dst)

Definition at line 231 of file dstr.bas.

sub DWstrZero ( byref_as_DWSTRING  dst)

Definition at line 208 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrAllocate ( byref_as_DZSTRING  dst,
byval_as_integer  chars 
)

Definition at line 72 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrAssign ( byref_as_DZSTRING  dst,
byval_as_zstring_ptr  src 
)

Definition at line 97 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrAssignC ( byref_as_DZSTRING  dst,
byval_as_uinteger  src 
)

Definition at line 131 of file dstr.bas.

sub DZstrAssignW ( byref_as_DZSTRING  dst,
byval_as_wstring_ptr  src 
)

Definition at line 114 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrConcatAssign ( byref_as_DZSTRING  dst,
byval_as_zstring_ptr  src 
)

Definition at line 149 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrConcatAssignC ( byref_as_DZSTRING  dst,
byval_as_uinteger  src 
)

Definition at line 185 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrConcatAssignW ( byref_as_DZSTRING  dst,
byval_as_wstring_ptr  src 
)

Definition at line 167 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrReset ( byref_as_DZSTRING  dst)

Definition at line 83 of file dstr.bas.

Here is the caller graph for this function:

sub DZstrZero ( byref_as_DZSTRING  dst)

Definition at line 60 of file dstr.bas.

Here is the caller graph for this function:

private sub hRealloc ( byval_as_DSTRING_ptr  s,
byval_as_integer  chars,
byval_as_integer  charsize,
byval_as_integer  dopreserve 
)

Definition at line 352 of file dstr.bas.

Here is the call graph for this function: