Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Scol Standard Library API. More...
Functions | |
std_addFifo (x, f) | |
... | |
std_addFlag (flags, flag) | |
Add a flag in a flags combination, like 'WN_MENU|WN_SIZEBOX|WN_MINBOX'. | |
std_clamp (v, m, M) | |
Clamp a value between two values. | |
std_clampenum (v, tuple, f) | |
std_clampT (v, tuple, default) | |
Clamp a value to a tuple. | |
std_cmpI (a, b) | |
Returns if two integers are equals or not. | |
std_cmpS (s, t) | |
Returns if two float numbers are equals or not. | |
std_cmpSi (s, t) | |
Returns if two string are equals. Case-insensitive. | |
std_concFifo (f, g) | |
... | |
std_divide (a, b) | |
Perform an entire division. | |
std_enumClamp (v, tuple) | |
Clamp an integer like an enum. The tuple should be sorted : only the first and the last element are compared. | |
std_enumClampF (v, tuple) | |
Clamp a float number like an enum. The tuple should be sorted : only the first and the last element are compared. | |
std_getFifo (f) | |
... | |
std_getloadedpackages (env) | |
std_getLoadedPackages (chn) | |
Returns the list of all loaded packages in a given channel. | |
std_isFlagPresent (flags, flag) | |
Check if a flag is in a flags combination, like 'WN_MENU|WN_SIZEBOX|WN_MINBOX'. | |
std_memory () | |
Return some infos about the operating system. See 'memoryInfos' for more informations about the memory. | |
std_ncmpI (a, b) | |
Returns if two integers are not equals. | |
std_ncmpS (s, t) | |
Returns if two float numbers are not equals. | |
std_ncmpSi (s, t) | |
Returns if two string are not equals. Case-insensitive. | |
std_newUnChn (szScript) | |
Create a new unplugged channel with the minimal environment. | |
std_newUnCurChn (szScript) | |
Create a new unplugged channel with the current environment. | |
std_newUnCurChnEx (szScript, funCon, funClo) | |
Create a new unplugged channel with the current environment. | |
std_objIsEqual (obj1, obj2) | |
Returns if two Scol objects are equal. | |
std_objIsNil (obj) | |
Get if an Scol object is nil. | |
std_os () | |
Return some infos about the operating system. See 'osInfos'. | |
std_random (max) | |
Return a random integer. | |
std_removeFlag (flags, flag) | |
Remove a flag in a flags combination, like 'WN_MENU|WN_SIZEBOX|WN_MINBOX'. | |
std_sameType (o1, o2) | |
Check if two objects have the same type. | |
std_sizeFifo (f) | |
... | |
std_sleep (second) | |
Perform a pause. | |
std_starterscriptparse (list) | |
std_starterScriptParse () | |
Parse the launcher script of the current application. | |
std_starterScriptParseP (pFile) | |
Parse a launcher script. | |
std_tupleCmp (tuple1, tuple2, fCmp) | |
Compare two tuples. | |
std_tupleHasNil (tuple) | |
Return if a tuple has an (or more) item at nil. | |
std_tupleIsFound (tuple, v) | |
Return if a value is found in a tuple. | |
std_tupleisfounds (tuple, s, isSensitive) | |
std_tupleIsFoundS (tuple, s) | |
Return if a string is found in a tuple. Case sensitive. | |
std_tupleIsFoundSi (tuple, s) | |
Return if a string is found in a tuple. Case insensitive. | |
std_tupleIsNil (tuple) | |
Return if a tuple is nil or each item is nil. | |
std_tupleNew (size, values, tuple) | |
Create a tuple. | |
std_tupleSize (tuple) | |
Return the size of a tuple. | |
std_tuplesort (tuple, f, flag) | |
std_tupleSort (tuple) | |
Sort the values of an integer tuple. | |
std_tuplesortcmp (a, b, flag) | |
std_tuplesortcmpf (a, b, flag) | |
std_tupleSortF (tuple) | |
Sort the values of a float tuple. | |
std_tupleSortFR (tuple) | |
Sort the values of a float tuple (reverse). | |
std_tupleSortR (tuple) | |
Sort the values of an integer tuple (reverse). | |
std_vectorAddF (fV1, fV2) | |
Add two vectors (float number) | |
std_vectorAddI (iV1, iV2) | |
Add two vectors (integer) | |
std_vectorAddS (szV1, szV2) | |
Add two vectors (string element) | |
std_vectorDivideF (fV1, fV2) | |
Divide two vectors (float number) | |
std_vectorDivideI (iV1, iV2) | |
Divide two vectors (integer) | |
std_vectorIsEqual (v1, v2) | |
Return if two integer vectors are equals. | |
std_vectorIsEqualAny (v1, v2) | |
Return if two vectors are equals. | |
std_vectorIsEqualS (v1, v2) | |
Return if two string vectors are equals. Case-sensitive. | |
std_vectorIsEqualSi (v1, v2) | |
Return if two string vectors are equals. Case-insensitive. | |
std_vectorIsNil (v) | |
Return if a vector is nil or not. | |
std_vectorIsNullF (v) | |
Return if a vector is null or not. | |
std_vectorIsNullI (v) | |
Return if a vector is null or not. | |
std_vectorIsNullS (v) | |
Return if a vector is "" or not. | |
std_vectorMultiplyF (fV1, fV2) | |
Multiply two vectors (float number) | |
std_vectorMultiplyI (iV1, iV2) | |
multiply two vectors (integer) | |
std_vectorSet (v) | |
Create a vector in duplicating a same given value. | |
std_vectorSubF (fV1, fV2) | |
Sub two vectors (float number) | |
std_vectorSubI (iV1, iV2) | |
Sub two vectors (integer) |
Detailed Description
Scol Standard Library API.
- Version
- 0.1
- Copyright
- GNU Lesser General Public License 2.0 or later
Generated on Sat Jan 31 2015 19:15:42 for Scol standard library package by 1.8.1.2