Skip to content

Commit 9ff4e4d

Browse files
authored
Merge pull request #406 from iLib-js/docUpdate
Update JS API doc more
2 parents 9c83935 + f80da0a commit 9ff4e4d

29 files changed

+114
-118
lines changed

js/lib/Address.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Address.js - Represent a mailing address
33
*
4-
* Copyright © 2013-2015, 2018, JEDLSoft
4+
* Copyright © 2013-2015, 2018, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -466,7 +466,7 @@ Address.prototype = {
466466

467467
/**
468468
* Find the named country either at the end or the beginning of the address.
469-
* @protected
469+
* @private
470470
*/
471471
_findCountry: function(name) {
472472
var start = -1, match, line = 0;

js/lib/AsyncNodeLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* AsyncAsyncNodeLoader.js - Loader implementation for nodejs with asynchronous calls.
2+
* AsyncNodeLoader.js - Loader implementation for nodejs with asynchronous calls.
33
* Mostly this is used for testing the async calls
44
*
55
* Copyright © 2018, 2020 JEDLSoft

js/lib/CType.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* CType.js - Character type definitions
33
*
4-
* Copyright © 2012-2015, 2018, JEDLSoft
4+
* Copyright © 2012-2015, 2018, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -72,7 +72,7 @@ var CType = {};
7272
* <li>Pf - Final_Punctuation
7373
* </ul>
7474
*
75-
* @protected
75+
* @private
7676
* @param {number} num code point of the character to examine
7777
* @param {string} rangeName the name of the range to check
7878
* @param {Object} obj object containing the character range data
@@ -294,7 +294,7 @@ CType.withinRange = function(ch, rangeName) {
294294
};
295295

296296
/**
297-
* @protected
297+
* @private
298298
* @param {boolean} sync
299299
* @param {Object|undefined} loadParams
300300
* @param {function(*)|undefined} onLoad
@@ -304,7 +304,7 @@ CType._init = function(sync, loadParams, onLoad) {
304304
};
305305

306306
/**
307-
* @protected
307+
* @private
308308
* @param {string} name
309309
* @param {boolean} sync
310310
* @param {Object|undefined} loadParams

js/lib/Calendar.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Calendar.js - Represent a calendar object.
33
*
4-
* Copyright © 2012-2015, JEDLSoft
4+
* Copyright © 2012-2015, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -20,11 +20,12 @@
2020
/**
2121
* @class
2222
* Superclass for all calendar subclasses that contains shared
23-
* functionality. This class is never instantiated on its own. Instead,
23+
* functionality.
24+
* This class is never instantiated on its own. Instead,
2425
* you should use the {@link CalendarFactory} function to manufacture a new
2526
* instance of a subclass of Calendar.
2627
*
27-
* @private
28+
* @protected
2829
* @constructor
2930
*/
3031
var Calendar = function() {

js/lib/CharmapTable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* CharmapTable.js - A character set mapping class that maps using trie table
33
*
4-
* Copyright © 2014-2015, 2018, JEDLSoft
4+
* Copyright © 2014-2015, 2018, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -116,7 +116,7 @@ var IString = require("./IString.js");
116116
* missing data synchronously.
117117
*
118118
* @constructor
119-
* @see {ilib.setLoaderCallback} for information about registering a loader callback instance
119+
* @see {@link ilib#setLoaderCallback} for information about registering a loader callback instance
120120
* @extends Charmap
121121
* @param {Object=} options options which govern the construction of this instance
122122
*/

js/lib/Charset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Charset.js - Return information about a particular character set
33
*
4-
* Copyright © 2014-2015, 2018, JEDLSoft
4+
* Copyright © 2014-2015, 2018, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -64,7 +64,7 @@ var Utils = require("./Utils.js");
6464
* missing data synchronously.
6565
*
6666
* @constructor
67-
* @see {ilib.setLoaderCallback} for information about registering a loader callback instance
67+
* @see {@link ilib#setLoaderCallback} for information about registering a loader callback instance
6868
* @param {Object=} options options which govern the construction of this instance
6969
*/
7070
var Charset = function(options) {

js/lib/CopticCal.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* CopticCal.js - Represent a Coptic calendar object.
33
*
4-
* Copyright © 2015,2018, JEDLSoft
4+
* Copyright © 2015,2018, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -17,7 +17,6 @@
1717
* limitations under the License.
1818
*/
1919

20-
var Utils = require("./Utils.js");
2120
var Calendar = require("./Calendar.js");
2221
var EthiopicCal = require("./EthiopicCal.js");
2322

js/lib/CopticDate.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* CopticDate.js - Represent a date in the Coptic calendar
33
*
4-
* Copyright © 2015, 2018, JEDLSoft
4+
* Copyright © 2015, 2018, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -19,8 +19,6 @@
1919

2020
var ilib = require("../index.js");
2121
var MathUtils = require("./MathUtils.js");
22-
23-
var Locale = require("./Locale.js");
2422
var IDate = require("./IDate.js");
2523

2624
var EthiopicDate = require("./EthiopicDate.js");

js/lib/DateFmt.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DateFmt.js - Date formatter definition
33
*
4-
* Copyright © 2012-2015, 2018, 2020 JEDLSoft
4+
* Copyright © 2012-2015, 2018, 2020, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -126,7 +126,7 @@ var ISet = require("./ISet.js");
126126
* Default components, if this property is not specified, is "dmy". This property may be specified
127127
* but has no affect if the current formatter is for times only.<br><br>
128128
* As of ilib 12.0, you can now pass ICU style skeletons in this option similar to the ones you
129-
* get from <a href="http://icu-project.org/apiref/icu4c432/classDateTimePatternGenerator.html#aa30c251609c1eea5ad60c95fc497251e">DateTimePatternGenerator.getSkeleton()</a>.
129+
* get from <a href="https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/classicu_1_1DateTimePatternGenerator.html#af59552a2922795b494f82ec230208e2e">DateTimePatternGenerator.getSkeleton()</a>.
130130
* It will not extract the length from the skeleton so you still need to pass the length property,
131131
* but it will extract the date components. <br><br>
132132
*
@@ -161,7 +161,7 @@ var ISet = require("./ISet.js");
161161
* a movie of 198 minutes.<br><br>
162162
* Default value if this property is not specified is "hma".<br><br>
163163
* As of ilib 12.0, you can now pass ICU style skeletons in this option similar to the ones you
164-
* get from <a href="http://icu-project.org/apiref/icu4c432/classDateTimePatternGenerator.html#aa30c251609c1eea5ad60c95fc497251e">DateTimePatternGenerator.getSkeleton()</a>.
164+
* get from <a href="https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/classicu_1_1DateTimePatternGenerator.html#af59552a2922795b494f82ec230208e2e">DateTimePatternGenerator.getSkeleton()</a>.
165165
* It will not extract the length from the skeleton so you still need to pass the length property,
166166
* but it will extract the time components.
167167
*
@@ -718,7 +718,7 @@ DateFmt.prototype = {
718718
});
719719
},
720720
/**
721-
* @protected
721+
* @private
722722
* @param {string|{
723723
* order:(string|{
724724
* s:string,
@@ -780,7 +780,7 @@ DateFmt.prototype = {
780780
},
781781

782782
/**
783-
* @protected
783+
* @private
784784
*/
785785
_massageTemplate: function () {
786786
var i;
@@ -855,7 +855,7 @@ DateFmt.prototype = {
855855

856856
/**
857857
* Convert the template into an array of date components separated by formatting chars.
858-
* @protected
858+
* @private
859859
* @param {string} template Format template to tokenize into components
860860
* @return {Array.<string>} a tokenized array of date format components
861861
*/
@@ -897,7 +897,7 @@ DateFmt.prototype = {
897897
},
898898

899899
/**
900-
* @protected
900+
* @private
901901
* @param {Object.<string, (string|{s:string,m:string,l:string,f:string})>} obj Object to search
902902
* @param {string} components Format components to search
903903
* @param {string} length Length of the requested format
@@ -924,7 +924,7 @@ DateFmt.prototype = {
924924
},
925925

926926
/**
927-
* @protected
927+
* @private
928928
* @param {Object.<string, (string|{s:string,m:string,l:string,f:string})>} obj Object to search
929929
* @param {string} components Format components to search
930930
* @param {string} length Length of the requested format
@@ -944,7 +944,7 @@ DateFmt.prototype = {
944944
},
945945

946946
/**
947-
* @protected
947+
* @private
948948
* @param {(string|{s:string,m:string,l:string,f:string})} obj Object to search
949949
* @param {string} length Length of the requested format
950950
* @return {(string|undefined)} the requested format

js/lib/EthiopicDate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* EthiopicDate.js - Represent a date in the Ethiopic calendar
33
*
4-
* Copyright © 2015, 2018, 2021 JEDLSoft
4+
* Copyright © 2015, 2018, 2021, 2023 JEDLSoft
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -214,7 +214,7 @@ EthiopicDate.prototype.newRd = function (params) {
214214

215215
/**
216216
* Return the year for the given RD
217-
* @protected
217+
* @private
218218
* @param {number} rd RD to calculate from
219219
* @returns {number} the year for the RD
220220
*/
@@ -226,7 +226,7 @@ EthiopicDate.prototype._calcYear = function(rd) {
226226

227227
/**
228228
* Calculate date components for the given RD date.
229-
* @protected
229+
* @private
230230
*/
231231
EthiopicDate.prototype._calcDateComponents = function () {
232232
var remainder,

0 commit comments

Comments
 (0)