@zenwave360/dsl 1.10.0-next.10.1 → 1.10.0-next.11.1

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.
@@ -8177,6 +8177,11 @@ function removeSurrounding(_this__u8e3s4, prefix, suffix) {
8177
8177
  }
8178
8178
  return _this__u8e3s4;
8179
8179
  }
8180
+ function substringBeforeLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
8181
+ missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
8182
+ var index = lastIndexOf(_this__u8e3s4, delimiter);
8183
+ return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, 0, index);
8184
+ }
8180
8185
  function split(_this__u8e3s4, delimiters, ignoreCase, limit) {
8181
8186
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
8182
8187
  limit = limit === VOID ? 0 : limit;
@@ -8416,6 +8421,29 @@ function endsWith_0(_this__u8e3s4, suffix, ignoreCase) {
8416
8421
  return regionMatchesImpl(_this__u8e3s4, charSequenceLength(_this__u8e3s4) - charSequenceLength(suffix) | 0, suffix, 0, charSequenceLength(suffix), ignoreCase);
8417
8422
  }
8418
8423
  }
8424
+ function lastIndexOf(_this__u8e3s4, char, startIndex, ignoreCase) {
8425
+ startIndex = startIndex === VOID ? get_lastIndex_1(_this__u8e3s4) : startIndex;
8426
+ ignoreCase = ignoreCase === VOID ? false : ignoreCase;
8427
+ var tmp;
8428
+ var tmp_0;
8429
+ if (ignoreCase) {
8430
+ tmp_0 = true;
8431
+ } else {
8432
+ tmp_0 = !(typeof _this__u8e3s4 === 'string');
8433
+ }
8434
+ if (tmp_0) {
8435
+ // Inline function 'kotlin.charArrayOf' call
8436
+ var tmp$ret$0 = charArrayOf([char]);
8437
+ tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
8438
+ } else {
8439
+ // Inline function 'kotlin.text.nativeLastIndexOf' call
8440
+ // Inline function 'kotlin.text.nativeLastIndexOf' call
8441
+ var str = toString(char);
8442
+ // Inline function 'kotlin.js.asDynamic' call
8443
+ tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
8444
+ }
8445
+ return tmp;
8446
+ }
8419
8447
  function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
8420
8448
  startIndex = startIndex === VOID ? 0 : startIndex;
8421
8449
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
@@ -8576,10 +8604,54 @@ function DelimitedRangesSequence(input, startIndex, limit, getNextMatch) {
8576
8604
  protoOf(DelimitedRangesSequence).g = function () {
8577
8605
  return new DelimitedRangesSequence$iterator$1(this);
8578
8606
  };
8607
+ function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
8608
+ startIndex = startIndex === VOID ? get_lastIndex_1(_this__u8e3s4) : startIndex;
8609
+ ignoreCase = ignoreCase === VOID ? false : ignoreCase;
8610
+ var tmp;
8611
+ if (!ignoreCase && chars.length === 1) {
8612
+ tmp = typeof _this__u8e3s4 === 'string';
8613
+ } else {
8614
+ tmp = false;
8615
+ }
8616
+ if (tmp) {
8617
+ var char = single(chars);
8618
+ // Inline function 'kotlin.text.nativeLastIndexOf' call
8619
+ // Inline function 'kotlin.text.nativeLastIndexOf' call
8620
+ var str = toString(char);
8621
+ // Inline function 'kotlin.js.asDynamic' call
8622
+ return _this__u8e3s4.lastIndexOf(str, startIndex);
8623
+ }
8624
+ var inductionVariable = coerceAtMost(startIndex, get_lastIndex_1(_this__u8e3s4));
8625
+ if (0 <= inductionVariable)
8626
+ do {
8627
+ var index = inductionVariable;
8628
+ inductionVariable = inductionVariable + -1 | 0;
8629
+ var charAtIndex = charSequenceGet(_this__u8e3s4, index);
8630
+ var tmp$ret$4;
8631
+ $l$block: {
8632
+ // Inline function 'kotlin.collections.any' call
8633
+ var inductionVariable_0 = 0;
8634
+ var last = chars.length;
8635
+ while (inductionVariable_0 < last) {
8636
+ var element = chars[inductionVariable_0];
8637
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
8638
+ if (equals_1(element, charAtIndex, ignoreCase)) {
8639
+ tmp$ret$4 = true;
8640
+ break $l$block;
8641
+ }
8642
+ }
8643
+ tmp$ret$4 = false;
8644
+ }
8645
+ if (tmp$ret$4)
8646
+ return index;
8647
+ }
8648
+ while (0 <= inductionVariable);
8649
+ return -1;
8650
+ }
8579
8651
  function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
8580
8652
  if (!ignoreCase && strings.j() === 1) {
8581
8653
  var string = single_1(strings);
8582
- var index = !last ? indexOf_1(_this__u8e3s4, string, startIndex) : lastIndexOf(_this__u8e3s4, string, startIndex);
8654
+ var index = !last ? indexOf_1(_this__u8e3s4, string, startIndex) : lastIndexOf_0(_this__u8e3s4, string, startIndex);
8583
8655
  return index < 0 ? null : to(index, string);
8584
8656
  }
8585
8657
  var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), charSequenceLength(_this__u8e3s4)) : downTo(coerceAtMost(startIndex, get_lastIndex_1(_this__u8e3s4)), 0);
@@ -8638,7 +8710,7 @@ function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
8638
8710
  }
8639
8711
  return null;
8640
8712
  }
8641
- function lastIndexOf(_this__u8e3s4, string, startIndex, ignoreCase) {
8713
+ function lastIndexOf_0(_this__u8e3s4, string, startIndex, ignoreCase) {
8642
8714
  startIndex = startIndex === VOID ? get_lastIndex_1(_this__u8e3s4) : startIndex;
8643
8715
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
8644
8716
  var tmp;
@@ -8930,6 +9002,7 @@ export {
8930
9002
  replace_0 as replaceqbix900hl8kl,
8931
9003
  split as split2bvyvnrlcifjv,
8932
9004
  startsWith as startsWith26w8qjqapeeq6,
9005
+ substringBeforeLast as substringBeforeLastqh7oeuvefdek,
8933
9006
  substring_0 as substring3saq8ornu0luv,
8934
9007
  substring as substringiqarkczpya5m,
8935
9008
  toBoolean as toBoolean2azvnq2ukl7b3,