ilib-tools-common 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/docs/Resource.html +260 -279
- package/docs/Resource.js.html +5 -2
- package/docs/ResourceArray.html +488 -512
- package/docs/ResourceArray.js.html +5 -2
- package/docs/ResourcePlural.html +518 -545
- package/docs/ResourcePlural.js.html +5 -2
- package/docs/ResourceString.html +1066 -1077
- package/docs/ResourceString.js.html +5 -2
- package/docs/ResourceXliff.html +34 -30
- package/docs/ResourceXliff.js.html +5 -2
- package/docs/TranslationSet.html +157 -160
- package/docs/TranslationSet.js.html +5 -2
- package/docs/TranslationUnit.html +1132 -0
- package/docs/TranslationUnit.js.html +249 -0
- package/docs/TranslationVariant.html +363 -0
- package/docs/TranslationVariant.js.html +122 -0
- package/docs/global.html +545 -36
- package/docs/index.html +5 -2
- package/docs/scripts/collapse.js +19 -0
- package/docs/scripts/commonNav.js +28 -0
- package/docs/scripts/search.js +16 -0
- package/docs/styles/jsdoc.css +13 -2
- package/docs/styles/prettify.css +1 -0
- package/docs/utils.js.html +96 -3
- package/package.json +5 -4
- package/src/TranslationUnit.js +178 -0
- package/src/TranslationVariant.js +51 -0
- package/src/index.js +19 -2
- package/src/utils.js +91 -1
package/docs/global.html
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
15
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
16
|
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
17
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
<nav >
|
|
29
30
|
|
|
30
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Resource.html">Resource</a><ul class='methods'><li data-type='method'><a href="Resource.html#addInstance">addInstance</a></li><li data-type='method'><a href="Resource.html#escapeText">escapeText</a></li><li data-type='method'><a href="Resource.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="Resource.html#getComment">getComment</a></li><li data-type='method'><a href="Resource.html#getContext">getContext</a></li><li data-type='method'><a href="Resource.html#getDataType">getDataType</a></li><li data-type='method'><a href="Resource.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="Resource.html#getId">getId</a></li><li data-type='method'><a href="Resource.html#getInstances">getInstances</a></li><li data-type='method'><a href="Resource.html#getKey">getKey</a></li><li data-type='method'><a href="Resource.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="Resource.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="Resource.html#getPath">getPath</a></li><li data-type='method'><a href="Resource.html#getProject">getProject</a></li><li data-type='method'><a href="Resource.html#getSource">getSource</a></li><li data-type='method'><a href="Resource.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="Resource.html#getState">getState</a></li><li data-type='method'><a href="Resource.html#getTarget">getTarget</a></li><li data-type='method'><a href="Resource.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="Resource.html#getType">getType</a></li><li data-type='method'><a href="Resource.html#isInstance">isInstance</a></li><li data-type='method'><a href="Resource.html#same">same</a></li><li data-type='method'><a href="Resource.html#setComment">setComment</a></li><li data-type='method'><a href="Resource.html#setProject">setProject</a></li><li data-type='method'><a href="Resource.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="Resource.html#setState">setState</a></li><li data-type='method'><a href="Resource.html#setTargetLocale">setTargetLocale</a></li></ul></li><li><a href="ResourceArray.html">ResourceArray</a><ul class='methods'><li data-type='method'><a href="ResourceArray.html#.hashKey">hashKey</a></li><li data-type='method'><a href="ResourceArray.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceArray.html#addSourceItem">addSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#addTargetItem">addTargetItem</a></li><li data-type='method'><a href="ResourceArray.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceArray.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourceArray.html#clone">clone</a></li><li data-type='method'><a href="ResourceArray.html#equals">equals</a></li><li data-type='method'><a href="ResourceArray.html#equals">equals</a></li><li data-type='method'><a href="ResourceArray.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourceArray.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourceArray.html#getComment">getComment</a></li><li data-type='method'><a href="ResourceArray.html#getContext">getContext</a></li><li data-type='method'><a href="ResourceArray.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourceArray.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourceArray.html#getId">getId</a></li><li data-type='method'><a href="ResourceArray.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourceArray.html#getKey">getKey</a></li><li data-type='method'><a href="ResourceArray.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourceArray.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourceArray.html#getPath">getPath</a></li><li data-type='method'><a href="ResourceArray.html#getProject">getProject</a></li><li data-type='method'><a href="ResourceArray.html#getSource">getSource</a></li><li data-type='method'><a href="ResourceArray.html#getSourceArray">getSourceArray</a></li><li data-type='method'><a href="ResourceArray.html#getSourceItem">getSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourceArray.html#getState">getState</a></li><li data-type='method'><a href="ResourceArray.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourceArray.html#getTargetArray">getTargetArray</a></li><li data-type='method'><a href="ResourceArray.html#getTargetItem">getTargetItem</a></li><li data-type='method'><a href="ResourceArray.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourceArray.html#getType">getType</a></li><li data-type='method'><a href="ResourceArray.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourceArray.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourceArray.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourceArray.html#same">same</a></li><li data-type='method'><a href="ResourceArray.html#setComment">setComment</a></li><li data-type='method'><a href="ResourceArray.html#setProject">setProject</a></li><li data-type='method'><a href="ResourceArray.html#setSource">setSource</a></li><li data-type='method'><a href="ResourceArray.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourceArray.html#setState">setState</a></li><li data-type='method'><a href="ResourceArray.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourceArray.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourceArray.html#size">size</a></li></ul></li><li><a href="ResourcePlural.html">ResourcePlural</a><ul class='methods'><li data-type='method'><a href="ResourcePlural.html#.hashKey">hashKey</a></li><li data-type='method'><a href="ResourcePlural.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourcePlural.html#addSourcePlural">addSourcePlural</a></li><li data-type='method'><a href="ResourcePlural.html#addTargetPlural">addTargetPlural</a></li><li data-type='method'><a href="ResourcePlural.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourcePlural.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourcePlural.html#clone">clone</a></li><li data-type='method'><a href="ResourcePlural.html#equals">equals</a></li><li data-type='method'><a href="ResourcePlural.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourcePlural.html#getAllValidCategories">getAllValidCategories</a></li><li data-type='method'><a href="ResourcePlural.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourcePlural.html#getCategories">getCategories</a></li><li data-type='method'><a href="ResourcePlural.html#getClasses">getClasses</a></li><li data-type='method'><a href="ResourcePlural.html#getComment">getComment</a></li><li data-type='method'><a href="ResourcePlural.html#getContext">getContext</a></li><li data-type='method'><a href="ResourcePlural.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourcePlural.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourcePlural.html#getId">getId</a></li><li data-type='method'><a href="ResourcePlural.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourcePlural.html#getKey">getKey</a></li><li data-type='method'><a href="ResourcePlural.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourcePlural.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourcePlural.html#getPath">getPath</a></li><li data-type='method'><a href="ResourcePlural.html#getProject">getProject</a></li><li data-type='method'><a href="ResourcePlural.html#getSource">getSource</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourcePlural.html#getSourcePlural">getSourcePlural</a></li><li data-type='method'><a href="ResourcePlural.html#getSourcePlurals">getSourcePlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceStrings">getSourceStrings</a></li><li data-type='method'><a href="ResourcePlural.html#getState">getState</a></li><li data-type='method'><a href="ResourcePlural.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetPlural">getTargetPlural</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetPlurals">getTargetPlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetStrings">getTargetStrings</a></li><li data-type='method'><a href="ResourcePlural.html#getType">getType</a></li><li data-type='method'><a href="ResourcePlural.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourcePlural.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourcePlural.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourcePlural.html#same">same</a></li><li data-type='method'><a href="ResourcePlural.html#setComment">setComment</a></li><li data-type='method'><a href="ResourcePlural.html#setProject">setProject</a></li><li data-type='method'><a href="ResourcePlural.html#setSource">setSource</a></li><li data-type='method'><a href="ResourcePlural.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourcePlural.html#setState">setState</a></li><li data-type='method'><a href="ResourcePlural.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourcePlural.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourcePlural.html#size">size</a></li></ul></li><li><a href="ResourceString.html">ResourceString</a><ul class='methods'><li data-type='method'><a href="ResourceString.html#.cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#.hashKey">hashKey</a></li><li data-type='method'><a href="ResourceString.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceString.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourceString.html#clone">clone</a></li><li data-type='method'><a href="ResourceString.html#equals">equals</a></li><li data-type='method'><a href="ResourceString.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourceString.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourceString.html#getComment">getComment</a></li><li data-type='method'><a href="ResourceString.html#getContext">getContext</a></li><li data-type='method'><a href="ResourceString.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourceString.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourceString.html#getId">getId</a></li><li data-type='method'><a href="ResourceString.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourceString.html#getKey">getKey</a></li><li data-type='method'><a href="ResourceString.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourceString.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourceString.html#getPath">getPath</a></li><li data-type='method'><a href="ResourceString.html#getProject">getProject</a></li><li data-type='method'><a href="ResourceString.html#getSource">getSource</a></li><li data-type='method'><a href="ResourceString.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourceString.html#getState">getState</a></li><li data-type='method'><a href="ResourceString.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourceString.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourceString.html#getType">getType</a></li><li data-type='method'><a href="ResourceString.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourceString.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourceString.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourceString.html#same">same</a></li><li data-type='method'><a href="ResourceString.html#setComment">setComment</a></li><li data-type='method'><a href="ResourceString.html#setProject">setProject</a></li><li data-type='method'><a href="ResourceString.html#setSource">setSource</a></li><li data-type='method'><a href="ResourceString.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourceString.html#setState">setState</a></li><li data-type='method'><a href="ResourceString.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourceString.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourceString.html#size">size</a></li></ul></li><li><a href="ResourceXliff.html">ResourceXliff</a></li><li><a href="TranslationSet.html">TranslationSet</a><ul class='methods'><li data-type='method'><a href="TranslationSet.html#add">add</a></li><li data-type='method'><a href="TranslationSet.html#addAll">addAll</a></li><li data-type='method'><a href="TranslationSet.html#addSet">addSet</a></li><li data-type='method'><a href="TranslationSet.html#clear">clear</a></li><li data-type='method'><a href="TranslationSet.html#diff">diff</a></li><li data-type='method'><a href="TranslationSet.html#get">get</a></li><li data-type='method'><a href="TranslationSet.html#getAll">getAll</a></li><li data-type='method'><a href="TranslationSet.html#getBy">getBy</a></li><li data-type='method'><a href="TranslationSet.html#getBySource">getBySource</a></li><li data-type='method'><a href="TranslationSet.html#getClean">getClean</a></li><li data-type='method'><a href="TranslationSet.html#getContexts">getContexts</a></li><li data-type='method'><a href="TranslationSet.html#getLocales">getLocales</a></li><li data-type='method'><a href="TranslationSet.html#getProjects">getProjects</a></li><li data-type='method'><a href="TranslationSet.html#isDirty">isDirty</a></li><li data-type='method'><a href="TranslationSet.html#remove">remove</a></li><li data-type='method'><a href="TranslationSet.html#setClean">setClean</a></li><li data-type='method'><a href="TranslationSet.html#size">size</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#cleanString">cleanString</a></li><li><a href="global.html#formatPath">formatPath</a></li><li><a href="global.html#getLocaleFromPath">getLocaleFromPath</a></li><li><a href="global.html#isEmpty">isEmpty</a></li></ul>
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Resource.html">Resource</a><ul class='methods'><li data-type='method'><a href="Resource.html#addInstance">addInstance</a></li><li data-type='method'><a href="Resource.html#escapeText">escapeText</a></li><li data-type='method'><a href="Resource.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="Resource.html#getComment">getComment</a></li><li data-type='method'><a href="Resource.html#getContext">getContext</a></li><li data-type='method'><a href="Resource.html#getDataType">getDataType</a></li><li data-type='method'><a href="Resource.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="Resource.html#getId">getId</a></li><li data-type='method'><a href="Resource.html#getInstances">getInstances</a></li><li data-type='method'><a href="Resource.html#getKey">getKey</a></li><li data-type='method'><a href="Resource.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="Resource.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="Resource.html#getPath">getPath</a></li><li data-type='method'><a href="Resource.html#getProject">getProject</a></li><li data-type='method'><a href="Resource.html#getSource">getSource</a></li><li data-type='method'><a href="Resource.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="Resource.html#getState">getState</a></li><li data-type='method'><a href="Resource.html#getTarget">getTarget</a></li><li data-type='method'><a href="Resource.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="Resource.html#getType">getType</a></li><li data-type='method'><a href="Resource.html#isInstance">isInstance</a></li><li data-type='method'><a href="Resource.html#same">same</a></li><li data-type='method'><a href="Resource.html#setComment">setComment</a></li><li data-type='method'><a href="Resource.html#setProject">setProject</a></li><li data-type='method'><a href="Resource.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="Resource.html#setState">setState</a></li><li data-type='method'><a href="Resource.html#setTargetLocale">setTargetLocale</a></li></ul></li><li><a href="ResourceArray.html">ResourceArray</a><ul class='methods'><li data-type='method'><a href="ResourceArray.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceArray.html#addSourceItem">addSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#addTargetItem">addTargetItem</a></li><li data-type='method'><a href="ResourceArray.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceArray.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourceArray.html#clone">clone</a></li><li data-type='method'><a href="ResourceArray.html#equals">equals</a></li><li data-type='method'><a href="ResourceArray.html#equals">equals</a></li><li data-type='method'><a href="ResourceArray.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourceArray.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourceArray.html#getComment">getComment</a></li><li data-type='method'><a href="ResourceArray.html#getContext">getContext</a></li><li data-type='method'><a href="ResourceArray.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourceArray.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourceArray.html#getId">getId</a></li><li data-type='method'><a href="ResourceArray.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourceArray.html#getKey">getKey</a></li><li data-type='method'><a href="ResourceArray.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourceArray.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourceArray.html#getPath">getPath</a></li><li data-type='method'><a href="ResourceArray.html#getProject">getProject</a></li><li data-type='method'><a href="ResourceArray.html#getSource">getSource</a></li><li data-type='method'><a href="ResourceArray.html#getSourceArray">getSourceArray</a></li><li data-type='method'><a href="ResourceArray.html#getSourceItem">getSourceItem</a></li><li data-type='method'><a href="ResourceArray.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourceArray.html#getState">getState</a></li><li data-type='method'><a href="ResourceArray.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourceArray.html#getTargetArray">getTargetArray</a></li><li data-type='method'><a href="ResourceArray.html#getTargetItem">getTargetItem</a></li><li data-type='method'><a href="ResourceArray.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourceArray.html#getType">getType</a></li><li data-type='method'><a href="ResourceArray.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourceArray.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourceArray.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourceArray.html#same">same</a></li><li data-type='method'><a href="ResourceArray.html#setComment">setComment</a></li><li data-type='method'><a href="ResourceArray.html#setProject">setProject</a></li><li data-type='method'><a href="ResourceArray.html#setSource">setSource</a></li><li data-type='method'><a href="ResourceArray.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourceArray.html#setState">setState</a></li><li data-type='method'><a href="ResourceArray.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourceArray.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourceArray.html#size">size</a></li><li data-type='method'><a href="ResourceArray.html#.hashKey">hashKey</a></li></ul></li><li><a href="ResourcePlural.html">ResourcePlural</a><ul class='methods'><li data-type='method'><a href="ResourcePlural.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourcePlural.html#addSourcePlural">addSourcePlural</a></li><li data-type='method'><a href="ResourcePlural.html#addTargetPlural">addTargetPlural</a></li><li data-type='method'><a href="ResourcePlural.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourcePlural.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourcePlural.html#clone">clone</a></li><li data-type='method'><a href="ResourcePlural.html#equals">equals</a></li><li data-type='method'><a href="ResourcePlural.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourcePlural.html#getAllValidCategories">getAllValidCategories</a></li><li data-type='method'><a href="ResourcePlural.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourcePlural.html#getCategories">getCategories</a></li><li data-type='method'><a href="ResourcePlural.html#getClasses">getClasses</a></li><li data-type='method'><a href="ResourcePlural.html#getComment">getComment</a></li><li data-type='method'><a href="ResourcePlural.html#getContext">getContext</a></li><li data-type='method'><a href="ResourcePlural.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourcePlural.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourcePlural.html#getId">getId</a></li><li data-type='method'><a href="ResourcePlural.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourcePlural.html#getKey">getKey</a></li><li data-type='method'><a href="ResourcePlural.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourcePlural.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourcePlural.html#getPath">getPath</a></li><li data-type='method'><a href="ResourcePlural.html#getProject">getProject</a></li><li data-type='method'><a href="ResourcePlural.html#getSource">getSource</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourcePlural.html#getSourcePlural">getSourcePlural</a></li><li data-type='method'><a href="ResourcePlural.html#getSourcePlurals">getSourcePlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getSourceStrings">getSourceStrings</a></li><li data-type='method'><a href="ResourcePlural.html#getState">getState</a></li><li data-type='method'><a href="ResourcePlural.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetPlural">getTargetPlural</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetPlurals">getTargetPlurals</a></li><li data-type='method'><a href="ResourcePlural.html#getTargetStrings">getTargetStrings</a></li><li data-type='method'><a href="ResourcePlural.html#getType">getType</a></li><li data-type='method'><a href="ResourcePlural.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourcePlural.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourcePlural.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourcePlural.html#same">same</a></li><li data-type='method'><a href="ResourcePlural.html#setComment">setComment</a></li><li data-type='method'><a href="ResourcePlural.html#setProject">setProject</a></li><li data-type='method'><a href="ResourcePlural.html#setSource">setSource</a></li><li data-type='method'><a href="ResourcePlural.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourcePlural.html#setState">setState</a></li><li data-type='method'><a href="ResourcePlural.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourcePlural.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourcePlural.html#size">size</a></li><li data-type='method'><a href="ResourcePlural.html#.hashKey">hashKey</a></li></ul></li><li><a href="ResourceString.html">ResourceString</a><ul class='methods'><li data-type='method'><a href="ResourceString.html#addInstance">addInstance</a></li><li data-type='method'><a href="ResourceString.html#cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#cleanHashKeyForTranslation">cleanHashKeyForTranslation</a></li><li data-type='method'><a href="ResourceString.html#clone">clone</a></li><li data-type='method'><a href="ResourceString.html#equals">equals</a></li><li data-type='method'><a href="ResourceString.html#escapeText">escapeText</a></li><li data-type='method'><a href="ResourceString.html#getAutoKey">getAutoKey</a></li><li data-type='method'><a href="ResourceString.html#getComment">getComment</a></li><li data-type='method'><a href="ResourceString.html#getContext">getContext</a></li><li data-type='method'><a href="ResourceString.html#getDataType">getDataType</a></li><li data-type='method'><a href="ResourceString.html#getFlavor">getFlavor</a></li><li data-type='method'><a href="ResourceString.html#getId">getId</a></li><li data-type='method'><a href="ResourceString.html#getInstances">getInstances</a></li><li data-type='method'><a href="ResourceString.html#getKey">getKey</a></li><li data-type='method'><a href="ResourceString.html#getLocalize">getLocalize</a></li><li data-type='method'><a href="ResourceString.html#getOrigin">getOrigin</a></li><li data-type='method'><a href="ResourceString.html#getPath">getPath</a></li><li data-type='method'><a href="ResourceString.html#getProject">getProject</a></li><li data-type='method'><a href="ResourceString.html#getSource">getSource</a></li><li data-type='method'><a href="ResourceString.html#getSourceLocale">getSourceLocale</a></li><li data-type='method'><a href="ResourceString.html#getState">getState</a></li><li data-type='method'><a href="ResourceString.html#getTarget">getTarget</a></li><li data-type='method'><a href="ResourceString.html#getTargetLocale">getTargetLocale</a></li><li data-type='method'><a href="ResourceString.html#getType">getType</a></li><li data-type='method'><a href="ResourceString.html#hashKey">hashKey</a></li><li data-type='method'><a href="ResourceString.html#hashKeyForTranslation">hashKeyForTranslation</a></li><li data-type='method'><a href="ResourceString.html#isInstance">isInstance</a></li><li data-type='method'><a href="ResourceString.html#same">same</a></li><li data-type='method'><a href="ResourceString.html#setComment">setComment</a></li><li data-type='method'><a href="ResourceString.html#setProject">setProject</a></li><li data-type='method'><a href="ResourceString.html#setSource">setSource</a></li><li data-type='method'><a href="ResourceString.html#setSourceLocale">setSourceLocale</a></li><li data-type='method'><a href="ResourceString.html#setState">setState</a></li><li data-type='method'><a href="ResourceString.html#setTarget">setTarget</a></li><li data-type='method'><a href="ResourceString.html#setTargetLocale">setTargetLocale</a></li><li data-type='method'><a href="ResourceString.html#size">size</a></li><li data-type='method'><a href="ResourceString.html#.cleanHashKey">cleanHashKey</a></li><li data-type='method'><a href="ResourceString.html#.hashKey">hashKey</a></li></ul></li><li><a href="ResourceXliff.html">ResourceXliff</a></li><li><a href="TranslationSet.html">TranslationSet</a><ul class='methods'><li data-type='method'><a href="TranslationSet.html#add">add</a></li><li data-type='method'><a href="TranslationSet.html#addAll">addAll</a></li><li data-type='method'><a href="TranslationSet.html#addSet">addSet</a></li><li data-type='method'><a href="TranslationSet.html#clear">clear</a></li><li data-type='method'><a href="TranslationSet.html#diff">diff</a></li><li data-type='method'><a href="TranslationSet.html#get">get</a></li><li data-type='method'><a href="TranslationSet.html#getAll">getAll</a></li><li data-type='method'><a href="TranslationSet.html#getBy">getBy</a></li><li data-type='method'><a href="TranslationSet.html#getBySource">getBySource</a></li><li data-type='method'><a href="TranslationSet.html#getClean">getClean</a></li><li data-type='method'><a href="TranslationSet.html#getContexts">getContexts</a></li><li data-type='method'><a href="TranslationSet.html#getLocales">getLocales</a></li><li data-type='method'><a href="TranslationSet.html#getProjects">getProjects</a></li><li data-type='method'><a href="TranslationSet.html#isDirty">isDirty</a></li><li data-type='method'><a href="TranslationSet.html#remove">remove</a></li><li data-type='method'><a href="TranslationSet.html#setClean">setClean</a></li><li data-type='method'><a href="TranslationSet.html#size">size</a></li></ul></li><li><a href="TranslationUnit.html">TranslationUnit</a><ul class='methods'><li data-type='method'><a href="TranslationUnit.html#addProperties">addProperties</a></li><li data-type='method'><a href="TranslationUnit.html#addVariant">addVariant</a></li><li data-type='method'><a href="TranslationUnit.html#addVariants">addVariants</a></li><li data-type='method'><a href="TranslationUnit.html#clone">clone</a></li><li data-type='method'><a href="TranslationUnit.html#getProperties">getProperties</a></li><li data-type='method'><a href="TranslationUnit.html#getVariants">getVariants</a></li><li data-type='method'><a href="TranslationUnit.html#hashKey">hashKey</a></li></ul></li><li><a href="TranslationVariant.html">TranslationVariant</a><ul class='methods'><li data-type='method'><a href="TranslationVariant.html#hashKey">hashKey</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#cleanString">cleanString</a></li><li><a href="global.html#containsActualText">containsActualText</a></li><li><a href="global.html#formatPath">formatPath</a></li><li><a href="global.html#getLocaleFromPath">getLocaleFromPath</a></li><li><a href="global.html#hashKey">hashKey</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#objectMap">objectMap</a></li></ul>
|
|
33
|
+
|
|
31
34
|
</nav>
|
|
32
35
|
|
|
33
36
|
<div id="main">
|
|
@@ -46,6 +49,8 @@
|
|
|
46
49
|
|
|
47
50
|
<h2>
|
|
48
51
|
|
|
52
|
+
|
|
53
|
+
|
|
49
54
|
</h2>
|
|
50
55
|
|
|
51
56
|
|
|
@@ -58,6 +63,7 @@
|
|
|
58
63
|
|
|
59
64
|
|
|
60
65
|
<dl class="details">
|
|
66
|
+
|
|
61
67
|
|
|
62
68
|
|
|
63
69
|
|
|
@@ -132,11 +138,16 @@
|
|
|
132
138
|
|
|
133
139
|
|
|
134
140
|
<dl class="details">
|
|
141
|
+
|
|
142
|
+
<dt class="tag-description">Description:</dt>
|
|
143
|
+
<dd class="tag-description"><ul class="dummy"><li>Clean a string for matching against other strings by removing
|
|
144
|
+
differences that are inconsequential for translation.</li></ul></dd>
|
|
145
|
+
|
|
135
146
|
|
|
136
147
|
|
|
137
148
|
<dt class="tag-source">Source:</dt>
|
|
138
149
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
139
|
-
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#
|
|
150
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line33">line 33</a>
|
|
140
151
|
</li></ul></dd>
|
|
141
152
|
|
|
142
153
|
|
|
@@ -175,13 +186,6 @@
|
|
|
175
186
|
|
|
176
187
|
|
|
177
188
|
|
|
178
|
-
<div class="description usertext">
|
|
179
|
-
Clean a string for matching against other strings by removing
|
|
180
|
-
differences that are inconsequential for translation.
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
189
|
|
|
186
190
|
|
|
187
191
|
|
|
@@ -190,7 +194,7 @@ differences that are inconsequential for translation.
|
|
|
190
194
|
|
|
191
195
|
|
|
192
196
|
|
|
193
|
-
<h5>Parameters:</h5>
|
|
197
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
194
198
|
|
|
195
199
|
|
|
196
200
|
<table class="params">
|
|
@@ -224,6 +228,7 @@ differences that are inconsequential for translation.
|
|
|
224
228
|
<span class="param-type">String</span>
|
|
225
229
|
|
|
226
230
|
|
|
231
|
+
|
|
227
232
|
|
|
228
233
|
</td>
|
|
229
234
|
|
|
@@ -253,7 +258,7 @@ differences that are inconsequential for translation.
|
|
|
253
258
|
|
|
254
259
|
|
|
255
260
|
|
|
256
|
-
<h5>Returns:</h5>
|
|
261
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
257
262
|
|
|
258
263
|
|
|
259
264
|
<div class="param-desc">
|
|
@@ -271,6 +276,7 @@ differences that are inconsequential for translation.
|
|
|
271
276
|
<span class="param-type">String</span>
|
|
272
277
|
|
|
273
278
|
|
|
279
|
+
|
|
274
280
|
</dd>
|
|
275
281
|
</dl>
|
|
276
282
|
|
|
@@ -283,7 +289,7 @@ differences that are inconsequential for translation.
|
|
|
283
289
|
|
|
284
290
|
|
|
285
291
|
|
|
286
|
-
<h4 class="name" id="
|
|
292
|
+
<h4 class="name" id="containsActualText"><span class="type-signature"></span>containsActualText<span class="signature">(str)</span><span class="type-signature"> → {boolean}</span></h4>
|
|
287
293
|
|
|
288
294
|
|
|
289
295
|
|
|
@@ -291,11 +297,15 @@ differences that are inconsequential for translation.
|
|
|
291
297
|
|
|
292
298
|
|
|
293
299
|
<dl class="details">
|
|
300
|
+
|
|
301
|
+
<dt class="tag-description">Description:</dt>
|
|
302
|
+
<dd class="tag-description"><ul class="dummy"><li>Return true if the string still contains some text after removing all HTML tags and entities.</li></ul></dd>
|
|
303
|
+
|
|
294
304
|
|
|
295
305
|
|
|
296
306
|
<dt class="tag-source">Source:</dt>
|
|
297
307
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
298
|
-
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#
|
|
308
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line335">line 335</a>
|
|
299
309
|
</li></ul></dd>
|
|
300
310
|
|
|
301
311
|
|
|
@@ -334,8 +344,120 @@ differences that are inconsequential for translation.
|
|
|
334
344
|
|
|
335
345
|
|
|
336
346
|
|
|
337
|
-
|
|
338
|
-
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
<table class="params">
|
|
359
|
+
<thead>
|
|
360
|
+
<tr>
|
|
361
|
+
|
|
362
|
+
<th>Name</th>
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
<th>Type</th>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
<th class="last">Description</th>
|
|
372
|
+
</tr>
|
|
373
|
+
</thead>
|
|
374
|
+
|
|
375
|
+
<tbody>
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
<tr>
|
|
379
|
+
|
|
380
|
+
<td class="name"><code>str</code></td>
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
<td class="type">
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
<span class="param-type">string</span>
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
</td>
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
<td class="description last">the string to check</td>
|
|
398
|
+
</tr>
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
</tbody>
|
|
402
|
+
</table>
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
<div class="param-desc">
|
|
423
|
+
true if there is text left over, and false otherwise
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
<dl class="param-type">
|
|
429
|
+
<dt>
|
|
430
|
+
Type
|
|
431
|
+
</dt>
|
|
432
|
+
<dd>
|
|
433
|
+
|
|
434
|
+
<span class="param-type">boolean</span>
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
</dd>
|
|
439
|
+
</dl>
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<h4 class="name" id="formatPath"><span class="type-signature"></span>formatPath<span class="signature">(template, parameters)</span><span class="type-signature"> → {string}</span></h4>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
<dl class="details">
|
|
458
|
+
|
|
459
|
+
<dt class="tag-description">Description:</dt>
|
|
460
|
+
<dd class="tag-description"><ul class="dummy"><li>Format a file path using a path template and parameters.
|
|
339
461
|
|
|
340
462
|
This function is used to generate an output file path for a given
|
|
341
463
|
source file path and a locale specifier.
|
|
@@ -373,8 +495,46 @@ templates:
|
|
|
373
495
|
The parameters may include the following:
|
|
374
496
|
- sourcepath - the path to the source file, relative to the root of
|
|
375
497
|
the project
|
|
376
|
-
- locale - the locale for the output file path
|
|
377
|
-
|
|
498
|
+
- locale - the locale for the output file path</li></ul></dd>
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
<dt class="tag-source">Source:</dt>
|
|
503
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
504
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line116">line 116</a>
|
|
505
|
+
</li></ul></dd>
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
</dl>
|
|
378
538
|
|
|
379
539
|
|
|
380
540
|
|
|
@@ -386,7 +546,9 @@ The parameters may include the following:
|
|
|
386
546
|
|
|
387
547
|
|
|
388
548
|
|
|
389
|
-
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
390
552
|
|
|
391
553
|
|
|
392
554
|
<table class="params">
|
|
@@ -420,6 +582,7 @@ The parameters may include the following:
|
|
|
420
582
|
<span class="param-type">string</span>
|
|
421
583
|
|
|
422
584
|
|
|
585
|
+
|
|
423
586
|
|
|
424
587
|
</td>
|
|
425
588
|
|
|
@@ -443,6 +606,7 @@ The parameters may include the following:
|
|
|
443
606
|
<span class="param-type">Object</span>
|
|
444
607
|
|
|
445
608
|
|
|
609
|
+
|
|
446
610
|
|
|
447
611
|
</td>
|
|
448
612
|
|
|
@@ -472,7 +636,7 @@ The parameters may include the following:
|
|
|
472
636
|
|
|
473
637
|
|
|
474
638
|
|
|
475
|
-
<h5>Returns:</h5>
|
|
639
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
476
640
|
|
|
477
641
|
|
|
478
642
|
<div class="param-desc">
|
|
@@ -490,6 +654,7 @@ The parameters may include the following:
|
|
|
490
654
|
<span class="param-type">string</span>
|
|
491
655
|
|
|
492
656
|
|
|
657
|
+
|
|
493
658
|
</dd>
|
|
494
659
|
</dl>
|
|
495
660
|
|
|
@@ -510,11 +675,16 @@ The parameters may include the following:
|
|
|
510
675
|
|
|
511
676
|
|
|
512
677
|
<dl class="details">
|
|
678
|
+
|
|
679
|
+
<dt class="tag-description">Description:</dt>
|
|
680
|
+
<dd class="tag-description"><ul class="dummy"><li>Return a locale encoded in the path using template to parse that path.
|
|
681
|
+
See {#formatPath} for the full description of the syntax of the template.</li></ul></dd>
|
|
682
|
+
|
|
513
683
|
|
|
514
684
|
|
|
515
685
|
<dt class="tag-source">Source:</dt>
|
|
516
686
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
517
|
-
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#
|
|
687
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line251">line 251</a>
|
|
518
688
|
</li></ul></dd>
|
|
519
689
|
|
|
520
690
|
|
|
@@ -553,10 +723,6 @@ The parameters may include the following:
|
|
|
553
723
|
|
|
554
724
|
|
|
555
725
|
|
|
556
|
-
<div class="description usertext">
|
|
557
|
-
Return a locale encoded in the path using template to parse that path.
|
|
558
|
-
See {#formatPath} for the full description of the syntax of the template.
|
|
559
|
-
</div>
|
|
560
726
|
|
|
561
727
|
|
|
562
728
|
|
|
@@ -565,10 +731,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
565
731
|
|
|
566
732
|
|
|
567
733
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
<h5>Parameters:</h5>
|
|
734
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
572
735
|
|
|
573
736
|
|
|
574
737
|
<table class="params">
|
|
@@ -602,6 +765,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
602
765
|
<span class="param-type">String</span>
|
|
603
766
|
|
|
604
767
|
|
|
768
|
+
|
|
605
769
|
|
|
606
770
|
</td>
|
|
607
771
|
|
|
@@ -625,6 +789,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
625
789
|
<span class="param-type">String</span>
|
|
626
790
|
|
|
627
791
|
|
|
792
|
+
|
|
628
793
|
|
|
629
794
|
</td>
|
|
630
795
|
|
|
@@ -654,7 +819,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
654
819
|
|
|
655
820
|
|
|
656
821
|
|
|
657
|
-
<h5>Returns:</h5>
|
|
822
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
658
823
|
|
|
659
824
|
|
|
660
825
|
<div class="param-desc">
|
|
@@ -672,6 +837,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
672
837
|
<span class="param-type">String</span>
|
|
673
838
|
|
|
674
839
|
|
|
840
|
+
|
|
675
841
|
</dd>
|
|
676
842
|
</dl>
|
|
677
843
|
|
|
@@ -684,7 +850,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
684
850
|
|
|
685
851
|
|
|
686
852
|
|
|
687
|
-
<h4 class="name" id="
|
|
853
|
+
<h4 class="name" id="hashKey"><span class="type-signature"></span>hashKey<span class="signature">(source)</span><span class="type-signature"> → {String}</span></h4>
|
|
688
854
|
|
|
689
855
|
|
|
690
856
|
|
|
@@ -692,11 +858,15 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
692
858
|
|
|
693
859
|
|
|
694
860
|
<dl class="details">
|
|
861
|
+
|
|
862
|
+
<dt class="tag-description">Description:</dt>
|
|
863
|
+
<dd class="tag-description"><ul class="dummy"><li>Return a standard hash of the given source string.</li></ul></dd>
|
|
864
|
+
|
|
695
865
|
|
|
696
866
|
|
|
697
867
|
<dt class="tag-source">Source:</dt>
|
|
698
868
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
699
|
-
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#
|
|
869
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line384">line 384</a>
|
|
700
870
|
</li></ul></dd>
|
|
701
871
|
|
|
702
872
|
|
|
@@ -735,12 +905,165 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
735
905
|
|
|
736
906
|
|
|
737
907
|
|
|
738
|
-
|
|
739
|
-
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
<table class="params">
|
|
920
|
+
<thead>
|
|
921
|
+
<tr>
|
|
922
|
+
|
|
923
|
+
<th>Name</th>
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
<th>Type</th>
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
<th class="last">Description</th>
|
|
933
|
+
</tr>
|
|
934
|
+
</thead>
|
|
935
|
+
|
|
936
|
+
<tbody>
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
<tr>
|
|
940
|
+
|
|
941
|
+
<td class="name"><code>source</code></td>
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
<td class="type">
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
<span class="param-type">String</span>
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
</td>
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
<td class="description last">the source string as extracted from the
|
|
959
|
+
source code, unmodified</td>
|
|
960
|
+
</tr>
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
</tbody>
|
|
964
|
+
</table>
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
<div class="param-desc">
|
|
985
|
+
the hash key
|
|
740
986
|
</div>
|
|
741
987
|
|
|
742
988
|
|
|
743
989
|
|
|
990
|
+
<dl class="param-type">
|
|
991
|
+
<dt>
|
|
992
|
+
Type
|
|
993
|
+
</dt>
|
|
994
|
+
<dd>
|
|
995
|
+
|
|
996
|
+
<span class="param-type">String</span>
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
</dd>
|
|
1001
|
+
</dl>
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
<h4 class="name" id="isEmpty"><span class="type-signature"></span>isEmpty<span class="signature">(obj)</span><span class="type-signature"> → {Boolean}</span></h4>
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
<dl class="details">
|
|
1020
|
+
|
|
1021
|
+
<dt class="tag-description">Description:</dt>
|
|
1022
|
+
<dd class="tag-description"><ul class="dummy"><li>Is an empty object or not</li></ul></dd>
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
<dt class="tag-source">Source:</dt>
|
|
1027
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
1028
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line56">line 56</a>
|
|
1029
|
+
</li></ul></dd>
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
</dl>
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
744
1067
|
|
|
745
1068
|
|
|
746
1069
|
|
|
@@ -749,7 +1072,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
749
1072
|
|
|
750
1073
|
|
|
751
1074
|
|
|
752
|
-
<h5>Parameters:</h5>
|
|
1075
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
753
1076
|
|
|
754
1077
|
|
|
755
1078
|
<table class="params">
|
|
@@ -783,6 +1106,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
783
1106
|
<span class="param-type">Object</span>
|
|
784
1107
|
|
|
785
1108
|
|
|
1109
|
+
|
|
786
1110
|
|
|
787
1111
|
</td>
|
|
788
1112
|
|
|
@@ -812,7 +1136,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
812
1136
|
|
|
813
1137
|
|
|
814
1138
|
|
|
815
|
-
<h5>Returns:</h5>
|
|
1139
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
816
1140
|
|
|
817
1141
|
|
|
818
1142
|
<div class="param-desc">
|
|
@@ -830,6 +1154,191 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
830
1154
|
<span class="param-type">Boolean</span>
|
|
831
1155
|
|
|
832
1156
|
|
|
1157
|
+
|
|
1158
|
+
</dd>
|
|
1159
|
+
</dl>
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
<h4 class="name" id="objectMap"><span class="type-signature"></span>objectMap<span class="signature">(object, visitor)</span><span class="type-signature"> → {*}</span></h4>
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
<dl class="details">
|
|
1178
|
+
|
|
1179
|
+
<dt class="tag-description">Description:</dt>
|
|
1180
|
+
<dd class="tag-description"><ul class="dummy"><li>Recursively visit every node in an object and call the visitor on any
|
|
1181
|
+
primitive values.</li></ul></dd>
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
<dt class="tag-source">Source:</dt>
|
|
1186
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
1187
|
+
<a href="utils.js.html">utils.js</a>, <a href="utils.js.html#line358">line 358</a>
|
|
1188
|
+
</li></ul></dd>
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
</dl>
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
<table class="params">
|
|
1238
|
+
<thead>
|
|
1239
|
+
<tr>
|
|
1240
|
+
|
|
1241
|
+
<th>Name</th>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<th>Type</th>
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
<th class="last">Description</th>
|
|
1251
|
+
</tr>
|
|
1252
|
+
</thead>
|
|
1253
|
+
|
|
1254
|
+
<tbody>
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
<tr>
|
|
1258
|
+
|
|
1259
|
+
<td class="name"><code>object</code></td>
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
<td class="type">
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
<span class="param-type">*</span>
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
</td>
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
<td class="description last">any object, arrary, or primitive</td>
|
|
1277
|
+
</tr>
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
<tr>
|
|
1282
|
+
|
|
1283
|
+
<td class="name"><code>visitor</code></td>
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
<td class="type">
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
<span class="param-type">function</span>
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
</td>
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
<td class="description last">function to call on any primitive</td>
|
|
1301
|
+
</tr>
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
</tbody>
|
|
1305
|
+
</table>
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
<div class="param-desc">
|
|
1326
|
+
the same type as the original object, but with every
|
|
1327
|
+
primitive processed by the visitor function
|
|
1328
|
+
</div>
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
<dl class="param-type">
|
|
1333
|
+
<dt>
|
|
1334
|
+
Type
|
|
1335
|
+
</dt>
|
|
1336
|
+
<dd>
|
|
1337
|
+
|
|
1338
|
+
<span class="param-type">*</span>
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
|
|
833
1342
|
</dd>
|
|
834
1343
|
</dl>
|
|
835
1344
|
|
|
@@ -857,7 +1366,7 @@ See {#formatPath} for the full description of the syntax of the template.
|
|
|
857
1366
|
<br class="clear">
|
|
858
1367
|
|
|
859
1368
|
<footer>
|
|
860
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
1369
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.0</a> on Tue Jan 24 2023 22:21:49 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
861
1370
|
</footer>
|
|
862
1371
|
|
|
863
1372
|
<script>prettyPrint();</script>
|