#include "ktypes.h"
#include "KList.h"
#include "KStrList.h"
Defines | |
| #define | k_min(a, b) ((a) <= (b) ? (a) : (b)) |
| Determines the minimum number between two integral numbers. | |
| #define | k_max(a, b) ((a) >= (b) ? (a) : (b)) |
| Determines the maximum number between two integral numbers. | |
| #define | kdouble_isequal(v1, v2, eps) (k_fabs ((v1) - (v2)) < (eps)) |
| Compares two floating point numbers regarding an epsilon value. | |
| #define | K_RAND_MAX 0x7fff |
| Represents the maximum number returned by k_rand_i. | |
| #define | k_getDirFiles(sDirPath) _k_getDirFiles (sDirPath, knull, __K_FILE__, __K_LINE__) |
| Returns the file list contained in the specified directory. Works only onto Windows systems. Returns the complete file names and directories except . and .. Warning! The returned KStrList structure must be deleted after using. | |
| #define | k_getDirFilteredFiles(sDirPath, sEndsWith) _k_getDirFiles (sDirPath, sEndsWith, __K_FILE__, __K_LINE__) |
| Returns the file list contained in the specified directory. Works only onto Windows systems. Returns the complete file names and directories except . and .. Warning! The returned KStrList structure must be deleted after using. | |
Functions | |
| KTL_API void | k_sleep (KInt sec) |
| Delays the current thread for a specified amount of time in second. | |
| KTL_API void | k_usleep (KUInt32 usec) |
| Delays the current thread for a specified amount of time in micro second. | |
| KTL_API KInt64 | k_find_index (KCPtr *parray, KCPtr data, KInt64 n) |
| Returns index of the data stored in an array. | |
| KTL_API KInt | k_rand_i () |
| Returns a random integral number between 0 and K_RAND_MAX. | |
| KTL_API void | k_srand (KUInt t) |
| Initialization of k_rand_i. | |
| KTL_API void | k_rand_init () |
| Initialization of the random functions. | |
| KTL_API KInt64 | k_rand_i64 (const KInt64 max) |
| Returns a 64 bits random integral number between 0 and the parameter. | |
| KTL_API KDouble | k_rand () |
| Returns a random floating point number between 0 and 1. | |
| KTL_API KString | k_rand_string (const KInt64 len) |
| Returns a random string with a random length. The random characters can be upper/lower-case or numbers between 0 and 9. | |
| KTL_API KChar | k_rand_char () |
| Returns a random character. The random character can be upper/lower-case or a number between 0 and 9. | |
| KTL_API KString | k_getFileName (KCString sFilePath) |
| Returns the file name of a file (without extension). | |
| KTL_API KString | k_getDirPath (KCString sFilePath) |
| Returns the directory path name of a file. | |
| KTL_API KString | k_getFileExt (KCString sFilePath) |
| Returns the file extension of a file (without name). | |
| KTL_API KString | k_getCompleteFile (KCString sPath) |
| Returns the complete file name (name + extension). | |
| KTL_API KString | k_makePath (KCString sDirPath, KCString sFileName) |
| Makes a file path by adding the directory path and the file name. | |
| KTL_API KBool | k_cleanPath (KString sPath) |
| Replaces the character / by the characters \ in the path file. | |
| KTL_API KStrList * | _k_getDirFiles (KCString sCInDirPath, KCString sEndsWith, KString sFile, KInt32 iLine) |
| Returns the file list contained in the specified directory. Works only onto Windows systems. Returns the complete file names and directories except . and .. Warning! The returned KStrList structure must be deleted after using. | |
| KTL_API void | k_deleteFileList (KList **plFileList) |
| Deletes a list of file names. | |
|
|
Returns the file list contained in the specified directory. Works only onto Windows systems. Returns the complete file names and directories except . and .. Warning! The returned KStrList structure must be deleted after using.
|
|
|
Returns the file list contained in the specified directory. Works only onto Windows systems. Returns the complete file names and directories except . and .. Warning! The returned KStrList structure must be deleted after using.
|
|
|
Determines the maximum number between two integral numbers.
|
|
|
Determines the minimum number between two integral numbers.
|
|
|
Compares two floating point numbers regarding an epsilon value.
|
|
||||||||||||||||||||
|
Returns the file list contained in the specified directory. Works only onto Windows systems. Returns the complete file names and directories except . and .. Warning! The returned KStrList structure must be deleted after using.
|
|
|
Replaces the character / by the characters \ in the path file.
|
|
|
Deletes a list of file names.
|
|
||||||||||||||||
|
Returns index of the data stored in an array.
|
|
|
Returns the complete file name (name + extension).
|
|
|
Returns the directory path name of a file.
|
|
|
Returns the file extension of a file (without name).
|
|
|
Returns the file name of a file (without extension).
|
|
||||||||||||
|
Makes a file path by adding the directory path and the file name.
|
|
|
Returns a random floating point number between 0 and 1.
|
|
|
Returns a random character. The random character can be upper/lower-case or a number between 0 and 9.
|
|
|
Returns a random integral number between 0 and K_RAND_MAX.
|
|
|
Returns a 64 bits random integral number between 0 and the parameter.
|
|
|
Returns a random string with a random length. The random characters can be upper/lower-case or numbers between 0 and 9.
|
|
|
Delays the current thread for a specified amount of time in second.
|
|
|
Initialization of k_rand_i.
|
|
|
Delays the current thread for a specified amount of time in micro second.
|
1.3.8