- Main Page
- Classes
- Files

- File List
- File Members

# flString.h

Go to the documentation of this file.

    00001 // funcLib - flString v1.0.0
    00002 //
    00003 // Contains functions for string manipulation,
    00004 // as well as functions for unicode conversion.
    00005 //
    00006 // Contributors: Flatmush
    00007
    00008
    00009
    00010
    00011
    00012 #ifndef FLSTRING_H
    00013 #define FLSTRING_H
    00014
    00015 #if FL_STRING != 0
    00016
    00017 #include "flGlobal.h"
    00018
    00019 #ifdef __cplusplus
    00020 extern "C" {
    00021 #endif
    00022
    00023 extern u32  strLen(u8* inStr);
    00024 extern s32  strCmp(u8* inStr0, u8* inStr1);
    00025 extern u16* strToUstr(u8* inStr);
    00026 extern u8*  strCopy(u8* inStr);
    00027 extern u8*  strCopyTo(u8* inStrDest, u8* inStrSrc);
    00028 extern u8*  strLCase(u8* inStr);
    00029 extern u8*  strUCase(u8* inStr);
    00030 extern u32  ustrLen(u16* inStr);
    00031 extern s32  ustrCmp(u16* inStr0, u16* inStr1);
    00032 extern u8*  ustrToStr(u16* inStr);
    00033 extern u16* ustrCopy(u16* inStr);
    00034 extern u16* ustrCopyTo(u16* inStrDest, u16* inStrSrc);
    00035 extern u16* ustrLCase(u16* inStr);
    00036 extern u16* ustrUCase(u16* inStr);
    00037
    00038 extern int    strToInt(u8* inStr);
    00039 extern float  strToFloat(u8* inStr);
    00040 extern vect2f strToVect2f(u8* inStr);
    00041 extern vect3f strToVect3f(u8* inStr);
    00042
    00043 #ifdef __cplusplus
    00044 }
    00045 #endif
    00046
    00047 #else
    00048
    00049 #include <string.h>
    00050
    00051 #define strLen(inStr) strlen((char*)inStr)
    00052 #define strCmp(inStr0, inStr1) strcmp((char*)inStr0, (char*)inStr1)
    00053 #define strCopyTo(inStrDest, inStrSrc) strcpy((char*)inStrDest, (char*)inStrSrc)
    00054
    00055 #endif
    00056
    00057 #endif