diff options
Diffstat (limited to 'node_modules/locutus/php/strings/strcspn.js.map')
-rw-r--r-- | node_modules/locutus/php/strings/strcspn.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/strcspn.js.map b/node_modules/locutus/php/strings/strcspn.js.map new file mode 100644 index 0000000..352182d --- /dev/null +++ b/node_modules/locutus/php/strings/strcspn.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/strings/strcspn.js"],"names":["module","exports","strcspn","str","mask","start","length","e","Math","min","i","lgth","indexOf","charAt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,GAAlB,EAAuBC,IAAvB,EAA6BC,KAA7B,EAAoCC,MAApC,EAA4C;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAD,UAAQA,SAAS,CAAjB;AACAC,WAAS,OAAOA,MAAP,KAAkB,WAAlB,GAAgCH,IAAIG,MAApC,GAA8CA,UAAU,CAAjE;AACA,MAAID,QAAQ,CAAZ,EAAeA,QAAQF,IAAIG,MAAJ,GAAaD,KAArB;AACf,MAAIC,SAAS,CAAb,EAAgBA,SAASH,IAAIG,MAAJ,GAAaD,KAAb,GAAqBC,MAA9B;AAChB,MAAID,QAAQ,CAAR,IAAaA,SAASF,IAAIG,MAA1B,IAAoCA,UAAU,CAA9C,IAAmDC,KAAKJ,IAAIG,MAAhE,EAAwE,OAAO,CAAP;AACxE,MAAIC,IAAIC,KAAKC,GAAL,CAASN,IAAIG,MAAb,EAAqBD,QAAQC,MAA7B,CAAR;AACA,OAAK,IAAII,IAAIL,KAAR,EAAeM,OAAO,CAA3B,EAA8BD,IAAIH,CAAlC,EAAqCG,GAArC,EAA0C;AACxC,QAAIN,KAAKQ,OAAL,CAAaT,IAAIU,MAAJ,CAAWH,CAAX,CAAb,MAAgC,CAAC,CAArC,EAAwC;AACtC;AACD;AACD,MAAEC,IAAF;AACD;AACD,SAAOA,IAAP;AACD,CA1BD","file":"strcspn.js","sourcesContent":["module.exports = function strcspn (str, mask, start, length) {\n // discuss at: http://locutus.io/php/strcspn/\n // original by: Brett Zamir (http://brett-zamir.me)\n // revised by: Theriault\n // example 1: strcspn('abcdefg123', '1234567890')\n // returns 1: 7\n // example 2: strcspn('123abc', '1234567890')\n // returns 2: 0\n // example 3: strcspn('abcdefg123', '1234567890', 1)\n // returns 3: 6\n // example 4: strcspn('abcdefg123', '1234567890', -6, -5)\n // returns 4: 1\n\n start = start || 0\n length = typeof length === 'undefined' ? str.length : (length || 0)\n if (start < 0) start = str.length + start\n if (length < 0) length = str.length - start + length\n if (start < 0 || start >= str.length || length <= 0 || e >= str.length) return 0\n var e = Math.min(str.length, start + length)\n for (var i = start, lgth = 0; i < e; i++) {\n if (mask.indexOf(str.charAt(i)) !== -1) {\n break\n }\n ++lgth\n }\n return lgth\n}\n"]}
\ No newline at end of file |