MCPcopy Create free account
hub / github.com/apache/cloudstack / manualLowercase

Function manualLowercase

tools/ngui/static/js/lib/angular.js:35–39  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

33
34
35var manualLowercase = function(s) {
36 return isString(s)
37 ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})
38 : s;
39};
40var manualUppercase = function(s) {
41 return isString(s)
42 ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})

Callers

nothing calls this directly

Calls 2

isStringFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected