MCPcopy Index your code
hub / github.com/apache/echarts / makeFlexibleNames

Function makeFlexibleNames

test/lib/testHelper.js:3167–3191  ·  view source on GitHub ↗
(dashedNames)

Source from the content-addressed store, hash-verified

3165 }
3166
3167 function makeFlexibleNames(dashedNames) {
3168 var nameMap = {};
3169 for (var i = 0; i < dashedNames.length; i++) {
3170 var name = dashedNames[i];
3171 var tmpNames = [];
3172 tmpNames.push(name);
3173 tmpNames.push(name.replace(/-/g, ''));
3174 tmpNames.push(name.replace(/-/g, '_'));
3175 tmpNames.push(name.replace(/-([a-zA-Z0-9])/g, function (_, wf) {
3176 return wf.toUpperCase();
3177 }));
3178 for (var j = 0; j < tmpNames.length; j++) {
3179 nameMap[tmpNames[j]] = 1;
3180 nameMap[tmpNames[j].toUpperCase()] = 1;
3181 nameMap[tmpNames[j].toLowerCase()] = 1;
3182 }
3183 }
3184 var names = [];
3185 for (var name in nameMap) {
3186 if (nameMap.hasOwnProperty(name)) {
3187 names.push(name);
3188 }
3189 }
3190 return names;
3191 }
3192
3193 /**
3194 * Copied from src/util/number.ts

Callers 1

initInputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…