eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4d_extsrc.c File Reference
Include dependency graph for d4d_extsrc.c:

Functions

int D4D_StrLen (register const D4D_CHAR *s)
 The function returns length of string terminated by zero. More...
 
D4D_CHARD4D_StrCopy (register D4D_CHAR *sd, register const D4D_CHAR *ss)
 The function copy string one string to other one (terminated by zero) More...
 
D4D_CHARD4D_StrCopyUnicode2Ascii (register D4D_CHAR *sd, register const D4D_WCHAR *ss)
 The function copy string one string (UNICODE) to other one (STANDARD 8 bit)(terminated by zero) More...
 
D4D_WCHARD4D_StrCopyAscii2Unicode (register D4D_WCHAR *sd, register const D4D_CHAR *ss)
 The function copy string one string (STANDARD 8 bit) to other one (UNICODE)(terminated by zero) More...
 
D4D_CHARD4D_StrCat (register D4D_CHAR *sd, register const D4D_CHAR *ss)
 The function concatenate strings (terminated by zero) More...
 
D4D_WCHARD4D_StrCatUnicode (register D4D_WCHAR *sd, register const D4D_WCHAR *ss)
 The function concatenate strings (terminated by zero) (UNICODE version) More...
 
int D4D_CompareStrings (const D4D_CHAR *s1, const D4D_CHAR *s2)
 The function copare two strings (terminated by zero) More...
 
int D4D_CompareStringsUnicode (const D4D_WCHAR *s1, const D4D_WCHAR *s2)
 The function copare two strings (terminated by zero) (UNICODE version) More...
 
void D4D_ToUpper (D4D_CHAR *s)
 The function convert all small alpha characters to upper in string(terminated by zero) More...
 
LWord D4D_SwapLong (LWord n)
 The function swap bytes in Long. More...
 
Word D4D_SwapWord (Word n)
 The function swap bytes in Word. More...
 

Detailed Description

D4D driver extscr functions c file.

Author
Michal hanak, Petr Gargulak
Version
0.0.12.0
Date
Oct-2-2013

Definition in file d4d_extsrc.c.

Function Documentation

int D4D_CompareStrings ( const D4D_CHAR s1,
const D4D_CHAR s2 
)

The function copare two strings (terminated by zero)

Parameters
s1- first string
s2- second string
Returns
0 - strings are identical, <>0 - strings are different
Note
If the D4D_STD_STRING_H_INCLUDE is defined, the library strcmp() function is called. Only 1 Byte wide char is handled (not UNICODE).

Definition at line 257 of file d4d_extsrc.c.

Here is the caller graph for this function:

int D4D_CompareStringsUnicode ( const D4D_WCHAR s1,
const D4D_WCHAR s2 
)

The function copare two strings (terminated by zero) (UNICODE version)

Parameters
s1- first string
s2- second string
Returns
0 - strings are identical, <>0 - strings are different
Note
The strings MUST have type D4D_WCHAR*.

Definition at line 290 of file d4d_extsrc.c.

D4D_CHAR* D4D_StrCat ( register D4D_CHAR sd,
register const D4D_CHAR ss 
)

The function concatenate strings (terminated by zero)

Parameters
sd- destination string
ss- source string
Returns
pointer to destination string
Note
If the D4D_STD_STRING_H_INCLUDE is defined, the library strcat() function is called. Only 1 Byte wide char is handled (not UNICODE).

Definition at line 211 of file d4d_extsrc.c.

D4D_WCHAR* D4D_StrCatUnicode ( register D4D_WCHAR sd,
register const D4D_WCHAR ss 
)

The function concatenate strings (terminated by zero) (UNICODE version)

Parameters
sd- destination string
ss- source string
Returns
pointer to destination string
Note
Handling just only UNICODE strings.

Definition at line 236 of file d4d_extsrc.c.

D4D_CHAR* D4D_StrCopy ( register D4D_CHAR sd,
register const D4D_CHAR ss 
)

The function copy string one string to other one (terminated by zero)

Parameters
sd- destination string
ss- source string
Returns
pointer to destination string
Note
If the D4D_STD_STRING_H_INCLUDE is defined, the library strcpy() function is called. Only 1 Byte wide char is handled (not UNICODE).

Definition at line 154 of file d4d_extsrc.c.

Here is the caller graph for this function:

D4D_WCHAR* D4D_StrCopyAscii2Unicode ( register D4D_WCHAR sd,
register const D4D_CHAR ss 
)

The function copy string one string (STANDARD 8 bit) to other one (UNICODE)(terminated by zero)

Parameters
sd- destination string
ss- source string
Returns
pointer to destination string
Note
Is used to convert strings from Unicode to standard ASCII.

Definition at line 193 of file d4d_extsrc.c.

D4D_CHAR* D4D_StrCopyUnicode2Ascii ( register D4D_CHAR sd,
register const D4D_WCHAR ss 
)

The function copy string one string (UNICODE) to other one (STANDARD 8 bit)(terminated by zero)

Parameters
sd- destination string
ss- source string
Returns
pointer to destination string
Note
Is used to convert strings from standard ASCII to Unicode.

Definition at line 176 of file d4d_extsrc.c.

int D4D_StrLen ( register const D4D_CHAR s)

The function returns length of string terminated by zero.

Parameters
s- input string
Returns
length of string
Note
If the D4D_STD_STRING_H_INCLUDE is defined, the library strlen() function is called. Only 1 Byte wide char is handled (not UNICODE).

Definition at line 128 of file d4d_extsrc.c.

Here is the caller graph for this function:

LWord D4D_SwapLong ( LWord  n)

The function swap bytes in Long.

Parameters
n- input long number
Returns
swapped input long number
Note
Is Used to handling endianism.

Definition at line 335 of file d4d_extsrc.c.

Word D4D_SwapWord ( Word  n)

The function swap bytes in Word.

Parameters
n- input word number
Returns
swapped input word number
Note
Is Used to handling endianism.

Definition at line 352 of file d4d_extsrc.c.

Here is the caller graph for this function:

void D4D_ToUpper ( D4D_CHAR s)

The function convert all small alpha characters to upper in string(terminated by zero)

Parameters
s- input string
Returns
none
Note
Only 1 Byte wide char is handled (not UNICODE).

Definition at line 318 of file d4d_extsrc.c.

Here is the caller graph for this function: