spBase
読み取り中…
検索中…
一致する文字列を見つけられません
spBase.h ファイル
#include <sp/spDefs.h>
#include <sp/spMemory.h>
#include <sp/spString.h>
spBase.h の依存先関係図:
被依存関係図:

[ソースコード]

列挙型

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
}
 

関数

メッセージの表示
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,...)
 
システム関連
void spSleep (int sec)
 
void spMSleep (int msec)
 
long spGetProcessId (void)
 
spBool spExecBrowser (const char *base_url, const char *sub_url, spBool local_path)
 
文字列処理
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 * 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 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)
 
ファイル・ディレクトリ名
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)
 
システム・アプリケーション用ディレクトリ
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)
 
数学関数
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)
 
型の変換
int spGetBitByte (int samp_bit, spBool *float_flag)
 
double spGetBitNormalizeFactor (int samp_bit)