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

Go to the source code of this file.

Macros

#define ASSIGN_SETUP(dst, src, _type)
 
#define CONCATASSIGN_SETUP(dst, src, _type)
 

Functions

sub ZstrAssign (byval_as_zstring_ptr_ptr dst, byval_as_zstring_ptr src)
 
sub ZstrAssignW (byval_as_zstring_ptr_ptr dst, byval_as_wstring_ptr src)
 
sub ZstrConcatAssign (byval_as_zstring_ptr_ptr dst, byval_as_zstring_ptr src)
 
sub ZstrConcatAssignW (byval_as_zstring_ptr_ptr dst, byval_as_wstring_ptr src)
 
sub WstrAssign (byval_as_wstring_ptr_ptr dst, byval_as_wstring_ptr src)
 
sub WstrAssignA (byval_as_wstring_ptr_ptr dst, byval_as_zstring_ptr src)
 
sub WstrConcatAssign (byval_as_wstring_ptr_ptr dst, byval_as_wstring_ptr src)
 
sub WstrConcatAssignW (byval_as_wstring_ptr_ptr dst, byval_as_zstring_ptr src)
 
function_as_zstring_ptr ZstrDup (byval_as_zstring_ptr s)
 
function_as_wstring_ptr WstrDup (byval_as_wstring_ptr s)
 
function_as_string hReplace (byval_as_zstring_ptr orgtext, byval_as_zstring_ptr oldtext, byval_as_zstring_ptr newtext)
 
function_as_wstring_ptr hReplaceW (byval_as_wstring_ptr orgtext, byval_as_wstring_ptr oldtext, byval_as_wstring_ptr newtext)
 
function_as_zstring_ptr hReplaceChar (byval_as_zstring_ptr orgtext, byval_as_integer oldchar, byval_as_integer newchar)
 
function_as_zstring_ptr hReEscape (byval_as_zstring_ptr text, byref_as_integer textlen, byref_as_integer isunicode)
 
function_as_wstring_ptr hReEscapeW (byval_as_wstring_ptr text, byref_as_integer textlen)
 
function_as_const_zstring_ptr hEscape (byval_as_const_zstring_ptr text)
 
private function_as_integer hRemapChar (byval_as_integer char)
 
function_as_integer hHasEscape (byval_as_zstring_ptr text)
 
function_as_integer hHasEscapeW (byval_as_wstring_ptr text)
 
private function_as_uinteger hU16ToWchar (byval_as_wstring_ptr src)
 
function_as_zstring_ptr hEscapeW (byval_as_wstring_ptr text)
 
function_as_zstring_ptr hUnescape (byval_as_zstring_ptr text)
 
function_as_wstring_ptr hUnescapeW (byval_as_wstring_ptr text)
 
function_as_integer hCharNeedsEscaping (byval_as_integer ch, byval_as_integer quotechar)
 
function_as_integer hIsValidHexDigit (byval_as_integer ch)
 

Macro Definition Documentation

#define ASSIGN_SETUP (   dst,
  src,
  _type 
)
Value:
/* _
dim as integer dst_len, src_len :_
:_
if( src = NULL ) then :_
src_len = 0 :_
else :_
src_len = len( *src ) :_
end if :_
:_
if( src_len = 0 ) then :_
if( *dst <> NULL ) then :_
deallocate( *dst ) :_
*dst = NULL :_
exit sub :_
end if :_
end if :_
:_
if( *dst = NULL ) then :_
dst_len = 0 :_
else :_
dst_len = len( **dst ) :_
end if :_
:_
if( dst_len <> src_len ) then :_
*dst = xallocate( (src_len+1) * len( _type ) ) :_
end if */

Definition at line 11 of file hlp-str.bas.

#define CONCATASSIGN_SETUP (   dst,
  src,
  _type 
)
Value:
/* _
dim as integer dst_len, src_len :_
:_
if( src = NULL ) then :_
exit sub :_
end if :_
:_
src_len = len( *src ) :_
if( src_len = 0 ) then :_
exit sub :_
end if :_
:_
if( *dst = NULL ) then :_
dst_len = 0 :_
*dst = xallocate( (src_len+1) * len( _type ) ) :_
else :_
dst_len = len( **dst ) :_
*dst = xreallocate( *dst, (dst_len+src_len+1) * len( _type ) ) :_
end if */

Definition at line 39 of file hlp-str.bas.

Function Documentation

function_as_integer hCharNeedsEscaping ( byval_as_integer  ch,
byval_as_integer  quotechar 
)

Definition at line 1241 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_const_zstring_ptr hEscape ( byval_as_const_zstring_ptr  text)

Definition at line 761 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_zstring_ptr hEscapeW ( byval_as_wstring_ptr  text)

Definition at line 1005 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer hHasEscape ( byval_as_zstring_ptr  text)

Definition at line 888 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_integer hHasEscapeW ( byval_as_wstring_ptr  text)

Definition at line 931 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_integer hIsValidHexDigit ( byval_as_integer  ch)

Definition at line 1253 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_zstring_ptr hReEscape ( byval_as_zstring_ptr  text,
byref_as_integer  textlen,
byref_as_integer  isunicode 
)

Definition at line 297 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_wstring_ptr hReEscapeW ( byval_as_wstring_ptr  text,
byref_as_integer  textlen 
)

Definition at line 535 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_integer hRemapChar ( byval_as_integer  char)

Definition at line 854 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_string hReplace ( byval_as_zstring_ptr  orgtext,
byval_as_zstring_ptr  oldtext,
byval_as_zstring_ptr  newtext 
)

Definition at line 212 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_zstring_ptr hReplaceChar ( byval_as_zstring_ptr  orgtext,
byval_as_integer  oldchar,
byval_as_integer  newchar 
)

Definition at line 279 of file hlp-str.bas.

Here is the caller graph for this function:

function_as_wstring_ptr hReplaceW ( byval_as_wstring_ptr  orgtext,
byval_as_wstring_ptr  oldtext,
byval_as_wstring_ptr  newtext 
)

Definition at line 245 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_uinteger hU16ToWchar ( byval_as_wstring_ptr  src)

Definition at line 974 of file hlp-str.bas.

function_as_zstring_ptr hUnescape ( byval_as_zstring_ptr  text)

Definition at line 1110 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_wstring_ptr hUnescapeW ( byval_as_wstring_ptr  text)

Definition at line 1172 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub WstrAssign ( byval_as_wstring_ptr_ptr  dst,
byval_as_wstring_ptr  src 
)

Definition at line 122 of file hlp-str.bas.

Here is the caller graph for this function:

sub WstrAssignA ( byval_as_wstring_ptr_ptr  dst,
byval_as_zstring_ptr  src 
)

Definition at line 137 of file hlp-str.bas.

sub WstrConcatAssign ( byval_as_wstring_ptr_ptr  dst,
byval_as_wstring_ptr  src 
)

Definition at line 152 of file hlp-str.bas.

Here is the caller graph for this function:

sub WstrConcatAssignW ( byval_as_wstring_ptr_ptr  dst,
byval_as_zstring_ptr  src 
)

Definition at line 167 of file hlp-str.bas.

function_as_wstring_ptr WstrDup ( byval_as_wstring_ptr  s)

Definition at line 197 of file hlp-str.bas.

Here is the call graph for this function:

sub ZstrAssign ( byval_as_zstring_ptr_ptr  dst,
byval_as_zstring_ptr  src 
)

Definition at line 61 of file hlp-str.bas.

Here is the caller graph for this function:

sub ZstrAssignW ( byval_as_zstring_ptr_ptr  dst,
byval_as_wstring_ptr  src 
)

Definition at line 76 of file hlp-str.bas.

sub ZstrConcatAssign ( byval_as_zstring_ptr_ptr  dst,
byval_as_zstring_ptr  src 
)

Definition at line 91 of file hlp-str.bas.

Here is the caller graph for this function:

sub ZstrConcatAssignW ( byval_as_zstring_ptr_ptr  dst,
byval_as_wstring_ptr  src 
)

Definition at line 106 of file hlp-str.bas.

function_as_zstring_ptr ZstrDup ( byval_as_zstring_ptr  s)

Definition at line 182 of file hlp-str.bas.

Here is the call graph for this function:

Here is the caller graph for this function: