Lines Matching refs:stringFileContentsJSON
24 function setStringItem(itemToAdd, stringFileContentsJSON) { argument
26 …if (!(stringFileContentsJSON !== null && stringFileContentsJSON !== void 0 && (_stringFileContents…
27 if (!stringFileContentsJSON.resources || typeof stringFileContentsJSON.resources === 'string') {
29 stringFileContentsJSON.resources = {};
31 stringFileContentsJSON.resources.string = itemToAdd;
32 return stringFileContentsJSON;
35 …const stringNameExists = stringFileContentsJSON.resources.string.findIndex(e => e.$.name === newIt…
38 stringFileContentsJSON.resources.string[stringNameExists] = newItem;
40 … stringFileContentsJSON.resources.string = stringFileContentsJSON.resources.string.concat(newItem);
43 return stringFileContentsJSON;
45 function removeStringItem(named, stringFileContentsJSON) { argument
47 …if (stringFileContentsJSON !== null && stringFileContentsJSON !== void 0 && (_stringFileContentsJS…
48 …const stringNameExists = stringFileContentsJSON.resources.string.findIndex(e => e.$.name === named…
51 stringFileContentsJSON.resources.string.splice(stringNameExists, 1);
54 return stringFileContentsJSON;