@cruglobal/godtools-shared 0.9.0-SNAPSHOT.1181 → 0.9.0-SNAPSHOT.1187

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.
@@ -2593,6 +2593,33 @@ if (typeof Math.imul === 'undefined') {
2593
2593
  tmp$ret$3 = tmp$ret$2;
2594
2594
  return tmp$ret$3;
2595
2595
  }
2596
+ function trimEnd(_this__u8e3s4, chars) {
2597
+ var tmp$ret$2;
2598
+ // Inline function 'kotlin.text.trimEnd' call
2599
+ var tmp$ret$1;
2600
+ $l$block: {
2601
+ // Inline function 'kotlin.text.trimEnd' call
2602
+ var tmp0_trimEnd = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
2603
+ var inductionVariable = charSequenceLength(tmp0_trimEnd) - 1 | 0;
2604
+ if (0 <= inductionVariable)
2605
+ do {
2606
+ var index = inductionVariable;
2607
+ inductionVariable = inductionVariable + -1 | 0;
2608
+ var tmp$ret$0;
2609
+ // Inline function 'kotlin.text.trimEnd.<anonymous>' call
2610
+ var tmp1__anonymous__uwfjfc = charSequenceGet(tmp0_trimEnd, index);
2611
+ tmp$ret$0 = contains_1(chars, tmp1__anonymous__uwfjfc);
2612
+ if (!tmp$ret$0) {
2613
+ tmp$ret$1 = charSequenceSubSequence(tmp0_trimEnd, 0, index + 1 | 0);
2614
+ break $l$block;
2615
+ }
2616
+ }
2617
+ while (0 <= inductionVariable);
2618
+ tmp$ret$1 = '';
2619
+ }
2620
+ tmp$ret$2 = toString_2(tmp$ret$1);
2621
+ return tmp$ret$2;
2622
+ }
2596
2623
  function split_0(_this__u8e3s4, delimiters, ignoreCase, limit) {
2597
2624
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
2598
2625
  limit = limit === VOID ? 0 : limit;
@@ -2644,33 +2671,6 @@ if (typeof Math.imul === 'undefined') {
2644
2671
  }
2645
2672
  return tmp;
2646
2673
  }
2647
- function trimEnd(_this__u8e3s4, chars) {
2648
- var tmp$ret$2;
2649
- // Inline function 'kotlin.text.trimEnd' call
2650
- var tmp$ret$1;
2651
- $l$block: {
2652
- // Inline function 'kotlin.text.trimEnd' call
2653
- var tmp0_trimEnd = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
2654
- var inductionVariable = charSequenceLength(tmp0_trimEnd) - 1 | 0;
2655
- if (0 <= inductionVariable)
2656
- do {
2657
- var index = inductionVariable;
2658
- inductionVariable = inductionVariable + -1 | 0;
2659
- var tmp$ret$0;
2660
- // Inline function 'kotlin.text.trimEnd.<anonymous>' call
2661
- var tmp1__anonymous__uwfjfc = charSequenceGet(tmp0_trimEnd, index);
2662
- tmp$ret$0 = contains_1(chars, tmp1__anonymous__uwfjfc);
2663
- if (!tmp$ret$0) {
2664
- tmp$ret$1 = charSequenceSubSequence(tmp0_trimEnd, 0, index + 1 | 0);
2665
- break $l$block;
2666
- }
2667
- }
2668
- while (0 <= inductionVariable);
2669
- tmp$ret$1 = '';
2670
- }
2671
- tmp$ret$2 = toString_2(tmp$ret$1);
2672
- return tmp$ret$2;
2673
- }
2674
2674
  function contains_5(_this__u8e3s4, char, ignoreCase) {
2675
2675
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
2676
2676
  return indexOf_3(_this__u8e3s4, char, VOID, ignoreCase) >= 0;
@@ -2716,6 +2716,30 @@ if (typeof Math.imul === 'undefined') {
2716
2716
  var delimitersList = asList(delimiters);
2717
2717
  return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda(delimitersList, ignoreCase));
2718
2718
  }
2719
+ function trim(_this__u8e3s4) {
2720
+ var tmp$ret$0;
2721
+ // Inline function 'kotlin.text.trim' call
2722
+ var startIndex = 0;
2723
+ var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
2724
+ var startFound = false;
2725
+ $l$loop: while (startIndex <= endIndex) {
2726
+ var index = !startFound ? startIndex : endIndex;
2727
+ var match = isWhitespace(charSequenceGet(_this__u8e3s4, index));
2728
+ if (!startFound) {
2729
+ if (!match)
2730
+ startFound = true;
2731
+ else
2732
+ startIndex = startIndex + 1 | 0;
2733
+ } else {
2734
+ if (!match)
2735
+ break $l$loop;
2736
+ else
2737
+ endIndex = endIndex - 1 | 0;
2738
+ }
2739
+ }
2740
+ tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
2741
+ return tmp$ret$0;
2742
+ }
2719
2743
  function rangesDelimitedBy_0(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
2720
2744
  startIndex = startIndex === VOID ? 0 : startIndex;
2721
2745
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
@@ -2783,30 +2807,6 @@ if (typeof Math.imul === 'undefined') {
2783
2807
  }
2784
2808
  return -1;
2785
2809
  }
2786
- function trim(_this__u8e3s4) {
2787
- var tmp$ret$0;
2788
- // Inline function 'kotlin.text.trim' call
2789
- var startIndex = 0;
2790
- var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
2791
- var startFound = false;
2792
- $l$loop: while (startIndex <= endIndex) {
2793
- var index = !startFound ? startIndex : endIndex;
2794
- var match = isWhitespace(charSequenceGet(_this__u8e3s4, index));
2795
- if (!startFound) {
2796
- if (!match)
2797
- startFound = true;
2798
- else
2799
- startIndex = startIndex + 1 | 0;
2800
- } else {
2801
- if (!match)
2802
- break $l$loop;
2803
- else
2804
- endIndex = endIndex - 1 | 0;
2805
- }
2806
- }
2807
- tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
2808
- return tmp$ret$0;
2809
- }
2810
2810
  function indexOf_3(_this__u8e3s4, char, startIndex, ignoreCase) {
2811
2811
  startIndex = startIndex === VOID ? 0 : startIndex;
2812
2812
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;