|
spBase
|


Go to the source code of this file.
Macros | |
| #define | spStrCaseEq(s1, s2) ((s1 != NULL) && (s2 != NULL) && (spStrCaseCmp((s1), (s2)) == 0) ? 1 : 0) |
| #define | spStrNCaseEq(s1, s2, n) ((s1 != NULL) && (s2 != NULL) && (spStrNCaseCmp((s1), (s2), n) == 0) ? 1 : 0) |
| #define | spStrVCaseEq(s1, s2) ((s1 != NULL) && (s2 != NULL) && (spStrNCaseCmp((s1), (s2), (int)strlen(s2)) == 0) ? 1 : 0) |
| #define | strcaseeq(s1, s2) spStrCaseEq(s1, s2) |
| #define | strncaseeq(s1, s2, n) spStrNCaseEq(s1, s2, n) |
| #define | strvcaseeq(s1, s2) spStrVCaseEq(s1, s2) |
| #define | strwhite(string) spStrWhite(string) |
Enumerations | |
| enum | spFileKind { SP_FILE_KIND_UNKNOWN = -1 , SP_FILE_KIND_DOCUMENT = 0 , SP_FILE_KIND_SOURCE = 1 , SP_FILE_KIND_CONFIG = 2 , SP_FILE_KIND_INCLUDE = 3 , SP_FILE_KIND_PICTURE = 10 , SP_FILE_KIND_FIGURE = 11 , SP_FILE_KIND_MUSIC = 20 , SP_FILE_KIND_SOUND = 21 , SP_FILE_KIND_MOVIE = 25 , SP_FILE_KIND_APPLICATION = 30 , SP_FILE_KIND_LIBRARY = 31 , SP_FILE_KIND_ARCHIVE = 40 , SP_FILE_KIND_URI = 50 } |
Functions | |
Message Display | |
| void | spSetWarningFlag (int flag) |
| void | spWarning (const char *format,...) |
| void | spSetMessageFlag (int flag) |
| void | spMessage (const char *format,...) |
| void | spError (int status, const char *format,...) |
| void | spProgError (const char *func_name, const char *format,...) |
| void | spSetDebugStdout (int flag) |
| void | spSetDebugLevel (int level) |
| int | spGetDebugLevel (void) |
| void | spDebug (int level, const char *func_name, const char *format,...) |
System Control | |
| void | spSleep (int sec) |
| void | spMSleep (int msec) |
| long | spGetProcessId (void) |
| spBool | spExecBrowser (const char *base_url, const char *sub_url, spBool local_path) |
String Management | |
| int | spStrCaseCmp (const char *s1, const char *s2) |
| int | spStrNCaseCmp (const char *s1, const char *s2, int n) |
| int | spStrWhite (const char *string) |
| char * | spSkipWhite (const char *string) |
| char * | xspStrCat (const char *orig, const char *src) |
| char * | spStrCat (char *dest, int destsize, const char *src) |
| char * | spStrCopy (char *dest, int destsize, const char *src) |
| char * | spGetSuffix (const char *name) |
| int | spEqSuffix (const char *file1, const char *file2) |
| spBool | spRemoveNSuffix (char *path, char *removed_suffix, int suffixsize) |
| spBool | spRemoveSuffix (char *path, char *removed_suffix) |
| spBool | spReplaceNSuffix (char *path, int pathsize, const char *suffix) |
| spBool | spReplaceSuffix (char *path, const char *suffix) |
| int | spConvertToEscapedString (char *escaped, int bufsize, const char *string, const char *charlist) |
| int | spConvertFromEscapedString (char *string, int bufsize, const char *escaped, const char *charlist) |
File and Directory | |
| FILE * | spOpenFile (const char *path, const char *mode) |
| int | spCloseFile (FILE *stream) |
| int | spSeekFile (FILE *stream, spFileOffset offset, int origin) |
| int | spSeekFile64 (FILE *stream, spLong64 offset, int origin) |
| spFileOffset | spTellFile (FILE *stream) |
| spBool | spGetFileInfo (const char *path, spBool *dir_flag, spFileOffset *size) |
| spBool | spExists (const char *path) |
| spBool | spIsExist (const char *path) |
| spBool | spIsFile (const char *path) |
| spBool | spIsDir (const char *path) |
| spBool | spCreateDir (const char *path, unsigned short mode) |
| spBool | spCreateDirRecursive (const char *path, unsigned short mode) |
| spBool | spRemoveDir (const char *path) |
| spBool | spRemoveFile (const char *path) |
| spBool | spRenameFile (const char *oldpath, const char *newpath) |
File and Directory Names | |
| spBool | spAddDirSeparator (char *dir) |
| spBool | spRemoveDirSeparator (char *dir) |
| spBool | spIsExactName (const char *name) |
| char * | xspGetExactName (const char *name) |
| char * | spGetBaseName (const char *name) |
| char * | xspGetBaseName (const char *name) |
| char * | spGetDirName (char *filename) |
| char * | xspGetDirName (const char *filename) |
| char * | xspGetReadablePath (const char *real_path) |
| char * | xspGetRealPath (const char *readable_path) |
| char * | xspCutPathList (const char *pathlist, int col) |
| char * | xspAppendPathList (const char *pathlist, const char *new_list) |
| char * | xspPrependPathList (const char *pathlist, const char *new_list) |
System and Application Directory | |
| const char * | spGetCurrentDir (void) |
| char * | xspGetCurrentDir (void) |
| const char * | spGetHomeDir (void) |
| char * | xspGetHomeDir (void) |
| const char * | spGetTempDir (void) |
| char * | xspGetTempDir (void) |
| spBool | spSetApplicationId (const char *id) |
| const char * | spGetCompanyId (void) |
| const char * | spGetApplicationId (void) |
| const char * | spGetVersionId (void) |
| const char * | spCreateApplicationDir (spBool *id_depend, spBool *version_depend) |
| const char * | spGetApplicationDir (spBool *version_depend) |
| char * | xspGetApplicationDir (spBool *version_depend) |
| const char * | spGetApplicationTempDir (void) |
| char * | xspGetApplicationTempDir (void) |
| spBool | spSetApplicationTempDir (const char *dir) |
| char * | xspGetDocumentDir (spFileKind file_kind) |
Numeric Functions | |
| double | spRound (double x) |
| double | spFix (double x) |
| double | spFrac (double x) |
| double | spRem (double x, double y) |
| long | spFactorial (int n) |
| void | spNFtos (char *buf, int bufsize, double x) |
| void | spFtos (char *buf, double x) |
| long | spNextPow2 (long n) |
Type Conversion | |
| int | spGetBitByte (int samp_bit, spBool *float_flag) |
| double | spGetBitNormalizeFactor (int samp_bit) |
| long | spConvertDoubleToBitWeighted (double *idata, long length, void *odata, int samp_bit, double weight) |
| long | spConvertDoubleToBit (double *idata, long length, void *odata, int samp_bit, double max) |
| long | spConvertDoubleToClippedBitWeighted (double *idata, long length, void *odata, int samp_bit, double weight) |
| long | spConvertDoubleToClippedBit (double *idata, long length, void *odata, int samp_bit, double max) |
| long | spConvertBitToDoubleWeighted (void *idata, long length, double *odata, int samp_bit, double weight) |
| long | spConvertBitToDouble (void *idata, long length, double *odata, int samp_bit, double max) |