• R/O
  • SSH

fcf-framework-core: Commit

Main functions and classes of the FCF framework


Commit MetaInfo

Révisionb741af01a4f28342bc81dd3b81d62d5c37d34495 (tree)
l'heure2022-12-06 10:15:00
Auteurvmarkin
Commitervmarkin

Message de Log

comments styles

Change Summary

Modification

diff -r 82c4db66ea45 -r b741af01a4f2 fcf.js
--- a/fcf.js Tue Dec 06 03:58:59 2022 +0300
+++ b/fcf.js Tue Dec 06 04:15:00 2022 +0300
@@ -24,9 +24,11 @@
2424 const _isServer = typeof module === "object" && typeof module.filename !== "undefined";
2525
2626
27- //
27+
28+ //////////////////////////////////////////////////////////////////////////////
2829 // SERVER SIDE INCLUDES
29- //
30+ //////////////////////////////////////////////////////////////////////////////
31+
3032
3133
3234 let libResolver;
@@ -37,9 +39,10 @@
3739 }
3840
3941
40- //
42+
43+ //////////////////////////////////////////////////////////////////////////////
4144 // STRING FUNCTIONS
42- //
45+ //////////////////////////////////////////////////////////////////////////////
4346
4447
4548
@@ -467,6 +470,7 @@
467470 }
468471
469472
473+
470474 /// @fn string fcf.id(number a_size = 32, boolean a_unsafeFirstChar = false)
471475 /// @brief Creates a string from random characters in hex format
472476 /// @param number a_size default = 32 - Generated string size
@@ -607,9 +611,9 @@
607611
608612
609613
610- //
614+ //////////////////////////////////////////////////////////////////////////////
611615 // DATA FUNCTIONS
612- //
616+ //////////////////////////////////////////////////////////////////////////////
613617
614618
615619
@@ -889,6 +893,8 @@
889893 }
890894 }
891895
896+
897+
892898 /// @fn fcf.getApproximateMSize(a_value)
893899 /// @brief A very approximate estimate of the memory occupied by an object in bytes.
894900 /// @details The error can reach up to 10 times.
@@ -917,6 +923,7 @@
917923 }
918924
919925
926+
920927 /// @fn object fcf.append(object|array a_dstObject, object|array a_srcObject1, object|array a_srcObject2, ...)
921928 /// @fn object fcf.append(boolean a_recursionCopy, object a_dstObject, object a_srcObject1, object a_srcObject2, ...)
922929 /// @brief Copies properties from a_srcObjectN objects to the receiving object
@@ -1234,9 +1241,9 @@
12341241
12351242
12361243
1237- //
1238- // BASE FUNCTIONS & CLASSES
1239- //
1244+ //////////////////////////////////////////////////////////////////////////////
1245+ // FUNCTIONS AND CLASSES OF BASIC FUNCTIONALITY
1246+ //////////////////////////////////////////////////////////////////////////////
12401247
12411248
12421249
@@ -1273,12 +1280,6 @@
12731280
12741281
12751282
1276- //
1277- // FUNCTIONS AND CLASSES OF BASIC FUNCTIONALITY
1278- //
1279-
1280-
1281-
12821283 /// @fn fcf.Actions fcf.actions(a_options = {deferred: false, noexcept: false})
12831284 /// @fn fcf.Actions fcf.actions(a_cb, a_options = {deferred: false, noexcept: false})
12841285 /// @fn fcf.Actions fcf.actions(Promise a_promise, a_options = {deferred: false, noexcept: false})
@@ -1304,10 +1305,6 @@
13041305 }
13051306
13061307
1307- const ACTIONS_FLAGS_DEFERRED = 1;
1308- const ACTIONS_FLAGS_NOEXCEPT = 2;
1309- const ACTIONS_FLAGS_RUN = 4;
1310-
13111308
13121309 /// @class fcf.Actions
13131310 /// @brief The analogue of the Promise class with extended functionality.
@@ -1696,6 +1693,7 @@
16961693 }
16971694
16981695
1696+
16991697 /// @method fcf.Actions finally(function a_cb)
17001698 /// @brief Adds a callback to the run queue that is also called will be called on error
17011699 /// @details When the a_cb function is called, this is set to fcf.Actions object
@@ -1783,6 +1781,8 @@
17831781 return this;
17841782 }
17851783
1784+
1785+
17861786 /// @method mixed exception()
17871787 /// @brief Throws an exception if the object of actions is in a state of error
17881788 /// @result fcf.Actions - Self object
@@ -1934,6 +1934,10 @@
19341934 }
19351935 }
19361936
1937+ const ACTIONS_FLAGS_DEFERRED = 1;
1938+ const ACTIONS_FLAGS_NOEXCEPT = 2;
1939+ const ACTIONS_FLAGS_RUN = 4;
1940+
19371941
19381942
19391943 fcf.module = (a_options) => {
Afficher sur ancien navigateur de dépôt.