@cruglobal/godtools-shared 1.4.0-SNAPSHOT.2530 → 1.4.0-SNAPSHOT.2532
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.
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -133,19 +133,19 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
133
133
|
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList);
|
|
134
134
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
135
135
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [KtMap]);
|
|
136
|
-
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [
|
|
136
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [Collection, KtSet]);
|
|
137
137
|
initMetadataForCompanion(Companion_4);
|
|
138
138
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtList, Collection]);
|
|
139
139
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMap]);
|
|
140
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
140
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, KtSet]);
|
|
141
141
|
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection]);
|
|
142
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
142
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, KtSet]);
|
|
143
143
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
144
144
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
145
145
|
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
|
|
146
146
|
initMetadataForClass(HashMapValuesDefault$iterator$1);
|
|
147
147
|
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
|
|
148
|
-
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [
|
|
148
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [Collection, KtSet]);
|
|
149
149
|
initMetadataForCompanion(Companion_5);
|
|
150
150
|
initMetadataForClass(Itr, 'Itr');
|
|
151
151
|
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
@@ -192,7 +192,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
192
192
|
initMetadataForObject(EmptyHolder, 'EmptyHolder');
|
|
193
193
|
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [KtMap]);
|
|
194
194
|
initMetadataForObject(EmptyHolder_0, 'EmptyHolder');
|
|
195
|
-
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [
|
|
195
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [Collection, KtSet]);
|
|
196
196
|
initMetadataForClass(BaseOutput, 'BaseOutput');
|
|
197
197
|
initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
|
|
198
198
|
initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
|
|
@@ -522,6 +522,17 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
522
522
|
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_0(mapCapacity(_this__u8e3s4.length)));
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
+
function dropLast(_this__u8e3s4, n) {
|
|
526
|
+
// Inline function 'kotlin.require' call
|
|
527
|
+
if (!(n >= 0)) {
|
|
528
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
529
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
530
|
+
}
|
|
531
|
+
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
|
|
532
|
+
}
|
|
533
|
+
function contains_0(_this__u8e3s4, element) {
|
|
534
|
+
return indexOf(_this__u8e3s4, element) >= 0;
|
|
535
|
+
}
|
|
525
536
|
function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
526
537
|
separator = separator === VOID ? ', ' : separator;
|
|
527
538
|
prefix = prefix === VOID ? '' : prefix;
|
|
@@ -531,26 +542,41 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
531
542
|
transform = transform === VOID ? null : transform;
|
|
532
543
|
return joinTo_0(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
533
544
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
545
|
+
function toCollection(_this__u8e3s4, destination) {
|
|
546
|
+
var inductionVariable = 0;
|
|
547
|
+
var last = _this__u8e3s4.length;
|
|
548
|
+
while (inductionVariable < last) {
|
|
549
|
+
var item = _this__u8e3s4[inductionVariable];
|
|
550
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
551
|
+
destination.h(item);
|
|
552
|
+
}
|
|
553
|
+
return destination;
|
|
536
554
|
}
|
|
537
|
-
function
|
|
555
|
+
function take(_this__u8e3s4, n) {
|
|
538
556
|
// Inline function 'kotlin.require' call
|
|
539
557
|
if (!(n >= 0)) {
|
|
540
558
|
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
541
559
|
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
542
560
|
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
561
|
+
if (n === 0)
|
|
562
|
+
return emptyList();
|
|
563
|
+
if (n >= _this__u8e3s4.length)
|
|
564
|
+
return toList(_this__u8e3s4);
|
|
565
|
+
if (n === 1)
|
|
566
|
+
return listOf(_this__u8e3s4[0]);
|
|
567
|
+
var count = 0;
|
|
568
|
+
var list = ArrayList_init_$Create$_0(n);
|
|
546
569
|
var inductionVariable = 0;
|
|
547
570
|
var last = _this__u8e3s4.length;
|
|
548
|
-
while (inductionVariable < last) {
|
|
571
|
+
$l$loop: while (inductionVariable < last) {
|
|
549
572
|
var item = _this__u8e3s4[inductionVariable];
|
|
550
573
|
inductionVariable = inductionVariable + 1 | 0;
|
|
551
|
-
|
|
574
|
+
list.h(item);
|
|
575
|
+
count = count + 1 | 0;
|
|
576
|
+
if (count === n)
|
|
577
|
+
break $l$loop;
|
|
552
578
|
}
|
|
553
|
-
return
|
|
579
|
+
return list;
|
|
554
580
|
}
|
|
555
581
|
function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
556
582
|
separator = separator === VOID ? ', ' : separator;
|
|
@@ -584,32 +610,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
584
610
|
buffer.g(postfix);
|
|
585
611
|
return buffer;
|
|
586
612
|
}
|
|
587
|
-
function take(_this__u8e3s4, n) {
|
|
588
|
-
// Inline function 'kotlin.require' call
|
|
589
|
-
if (!(n >= 0)) {
|
|
590
|
-
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
591
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
592
|
-
}
|
|
593
|
-
if (n === 0)
|
|
594
|
-
return emptyList();
|
|
595
|
-
if (n >= _this__u8e3s4.length)
|
|
596
|
-
return toList(_this__u8e3s4);
|
|
597
|
-
if (n === 1)
|
|
598
|
-
return listOf(_this__u8e3s4[0]);
|
|
599
|
-
var count = 0;
|
|
600
|
-
var list = ArrayList_init_$Create$_0(n);
|
|
601
|
-
var inductionVariable = 0;
|
|
602
|
-
var last = _this__u8e3s4.length;
|
|
603
|
-
$l$loop: while (inductionVariable < last) {
|
|
604
|
-
var item = _this__u8e3s4[inductionVariable];
|
|
605
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
606
|
-
list.h(item);
|
|
607
|
-
count = count + 1 | 0;
|
|
608
|
-
if (count === n)
|
|
609
|
-
break $l$loop;
|
|
610
|
-
}
|
|
611
|
-
return list;
|
|
612
|
-
}
|
|
613
613
|
function toList(_this__u8e3s4) {
|
|
614
614
|
switch (_this__u8e3s4.length) {
|
|
615
615
|
case 0:
|
|
@@ -2829,6 +2829,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
2829
2829
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2830
2830
|
_this__u8e3s4.fill(element, fromIndex, toIndex);
|
|
2831
2831
|
}
|
|
2832
|
+
function contentEquals(_this__u8e3s4, other) {
|
|
2833
|
+
return contentEqualsInternal(_this__u8e3s4, other);
|
|
2834
|
+
}
|
|
2832
2835
|
function copyOf(_this__u8e3s4, newSize) {
|
|
2833
2836
|
// Inline function 'kotlin.require' call
|
|
2834
2837
|
if (!(newSize >= 0)) {
|
|
@@ -2837,12 +2840,20 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
2837
2840
|
}
|
|
2838
2841
|
return arrayCopyResize(_this__u8e3s4, newSize, null);
|
|
2839
2842
|
}
|
|
2843
|
+
function fill_0(_this__u8e3s4, element, fromIndex, toIndex) {
|
|
2844
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2845
|
+
toIndex = toIndex === VOID ? _this__u8e3s4.length : toIndex;
|
|
2846
|
+
Companion_instance_7.q2(fromIndex, toIndex, _this__u8e3s4.length);
|
|
2847
|
+
// Inline function 'kotlin.js.nativeFill' call
|
|
2848
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2849
|
+
_this__u8e3s4.fill(element, fromIndex, toIndex);
|
|
2850
|
+
}
|
|
2840
2851
|
function copyOfRange(_this__u8e3s4, fromIndex, toIndex) {
|
|
2841
2852
|
Companion_instance_7.q2(fromIndex, toIndex, _this__u8e3s4.length);
|
|
2842
2853
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2843
2854
|
return _this__u8e3s4.slice(fromIndex, toIndex);
|
|
2844
2855
|
}
|
|
2845
|
-
function
|
|
2856
|
+
function contentEquals_0(_this__u8e3s4, other) {
|
|
2846
2857
|
return contentEqualsInternal(_this__u8e3s4, other);
|
|
2847
2858
|
}
|
|
2848
2859
|
function copyOf_0(_this__u8e3s4, newSize) {
|
|
@@ -2872,20 +2883,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
2872
2883
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2873
2884
|
return new ArrayList(_this__u8e3s4);
|
|
2874
2885
|
}
|
|
2875
|
-
function contentEquals_0(_this__u8e3s4, other) {
|
|
2876
|
-
return contentEqualsInternal(_this__u8e3s4, other);
|
|
2877
|
-
}
|
|
2878
2886
|
function contentEquals_1(_this__u8e3s4, other) {
|
|
2879
2887
|
return contentEqualsInternal(_this__u8e3s4, other);
|
|
2880
2888
|
}
|
|
2881
|
-
function fill_0(_this__u8e3s4, element, fromIndex, toIndex) {
|
|
2882
|
-
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2883
|
-
toIndex = toIndex === VOID ? _this__u8e3s4.length : toIndex;
|
|
2884
|
-
Companion_instance_7.q2(fromIndex, toIndex, _this__u8e3s4.length);
|
|
2885
|
-
// Inline function 'kotlin.js.nativeFill' call
|
|
2886
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2887
|
-
_this__u8e3s4.fill(element, fromIndex, toIndex);
|
|
2888
|
-
}
|
|
2889
2889
|
function sort(_this__u8e3s4) {
|
|
2890
2890
|
if (_this__u8e3s4.length > 1) {
|
|
2891
2891
|
sortArray(_this__u8e3s4);
|
|
@@ -5238,29 +5238,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5238
5238
|
function NumberFormatException() {
|
|
5239
5239
|
captureStack(this, NumberFormatException);
|
|
5240
5240
|
}
|
|
5241
|
-
function AssertionError_init_$Init$($this) {
|
|
5242
|
-
Error_init_$Init$($this);
|
|
5243
|
-
AssertionError.call($this);
|
|
5244
|
-
return $this;
|
|
5245
|
-
}
|
|
5246
|
-
function AssertionError_init_$Create$() {
|
|
5247
|
-
var tmp = AssertionError_init_$Init$(objectCreate(protoOf(AssertionError)));
|
|
5248
|
-
captureStack(tmp, AssertionError_init_$Create$);
|
|
5249
|
-
return tmp;
|
|
5250
|
-
}
|
|
5251
|
-
function AssertionError_init_$Init$_0(message, $this) {
|
|
5252
|
-
Error_init_$Init$_0(message, $this);
|
|
5253
|
-
AssertionError.call($this);
|
|
5254
|
-
return $this;
|
|
5255
|
-
}
|
|
5256
|
-
function AssertionError_init_$Create$_0(message) {
|
|
5257
|
-
var tmp = AssertionError_init_$Init$_0(message, objectCreate(protoOf(AssertionError)));
|
|
5258
|
-
captureStack(tmp, AssertionError_init_$Create$_0);
|
|
5259
|
-
return tmp;
|
|
5260
|
-
}
|
|
5261
|
-
function AssertionError() {
|
|
5262
|
-
captureStack(this, AssertionError);
|
|
5263
|
-
}
|
|
5264
5241
|
function Error_init_$Init$($this) {
|
|
5265
5242
|
extendThrowable($this);
|
|
5266
5243
|
Error_0.call($this);
|
|
@@ -5284,6 +5261,29 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5284
5261
|
function Error_0() {
|
|
5285
5262
|
captureStack(this, Error_0);
|
|
5286
5263
|
}
|
|
5264
|
+
function AssertionError_init_$Init$($this) {
|
|
5265
|
+
Error_init_$Init$($this);
|
|
5266
|
+
AssertionError.call($this);
|
|
5267
|
+
return $this;
|
|
5268
|
+
}
|
|
5269
|
+
function AssertionError_init_$Create$() {
|
|
5270
|
+
var tmp = AssertionError_init_$Init$(objectCreate(protoOf(AssertionError)));
|
|
5271
|
+
captureStack(tmp, AssertionError_init_$Create$);
|
|
5272
|
+
return tmp;
|
|
5273
|
+
}
|
|
5274
|
+
function AssertionError_init_$Init$_0(message, $this) {
|
|
5275
|
+
Error_init_$Init$_0(message, $this);
|
|
5276
|
+
AssertionError.call($this);
|
|
5277
|
+
return $this;
|
|
5278
|
+
}
|
|
5279
|
+
function AssertionError_init_$Create$_0(message) {
|
|
5280
|
+
var tmp = AssertionError_init_$Init$_0(message, objectCreate(protoOf(AssertionError)));
|
|
5281
|
+
captureStack(tmp, AssertionError_init_$Create$_0);
|
|
5282
|
+
return tmp;
|
|
5283
|
+
}
|
|
5284
|
+
function AssertionError() {
|
|
5285
|
+
captureStack(this, AssertionError);
|
|
5286
|
+
}
|
|
5287
5287
|
function UninitializedPropertyAccessException_init_$Init$($this) {
|
|
5288
5288
|
RuntimeException_init_$Init$($this);
|
|
5289
5289
|
UninitializedPropertyAccessException.call($this);
|
|
@@ -8026,12 +8026,12 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8026
8026
|
function listOfNotNull(element) {
|
|
8027
8027
|
return !(element == null) ? listOf(element) : emptyList();
|
|
8028
8028
|
}
|
|
8029
|
-
function get_indices(_this__u8e3s4) {
|
|
8030
|
-
return numberRangeToNumber(0, _this__u8e3s4.o() - 1 | 0);
|
|
8031
|
-
}
|
|
8032
8029
|
function listOf_0(elements) {
|
|
8033
8030
|
return elements.length > 0 ? asList(elements) : emptyList();
|
|
8034
8031
|
}
|
|
8032
|
+
function get_indices(_this__u8e3s4) {
|
|
8033
|
+
return numberRangeToNumber(0, _this__u8e3s4.o() - 1 | 0);
|
|
8034
|
+
}
|
|
8035
8035
|
function EmptyList() {
|
|
8036
8036
|
EmptyList_instance = this;
|
|
8037
8037
|
this.gd_1 = new Long(-1478467534, -1720727600);
|
|
@@ -9824,6 +9824,20 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
9824
9824
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
9825
9825
|
return indexOf_1(_this__u8e3s4, char, VOID, ignoreCase) >= 0;
|
|
9826
9826
|
}
|
|
9827
|
+
function contains_6(_this__u8e3s4, other, ignoreCase) {
|
|
9828
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
9829
|
+
var tmp;
|
|
9830
|
+
if (typeof other === 'string') {
|
|
9831
|
+
tmp = indexOf_2(_this__u8e3s4, other, VOID, ignoreCase) >= 0;
|
|
9832
|
+
} else {
|
|
9833
|
+
tmp = indexOf_3(_this__u8e3s4, other, 0, charSequenceLength(_this__u8e3s4), ignoreCase) >= 0;
|
|
9834
|
+
}
|
|
9835
|
+
return tmp;
|
|
9836
|
+
}
|
|
9837
|
+
function padStart(_this__u8e3s4, length, padChar) {
|
|
9838
|
+
padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
|
|
9839
|
+
return toString_1(padStart_0(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE(), length, padChar));
|
|
9840
|
+
}
|
|
9827
9841
|
function indexOf_1(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
9828
9842
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
9829
9843
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
@@ -9866,20 +9880,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
9866
9880
|
}
|
|
9867
9881
|
return tmp;
|
|
9868
9882
|
}
|
|
9869
|
-
function contains_6(_this__u8e3s4, other, ignoreCase) {
|
|
9870
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
9871
|
-
var tmp;
|
|
9872
|
-
if (typeof other === 'string') {
|
|
9873
|
-
tmp = indexOf_2(_this__u8e3s4, other, VOID, ignoreCase) >= 0;
|
|
9874
|
-
} else {
|
|
9875
|
-
tmp = indexOf_3(_this__u8e3s4, other, 0, charSequenceLength(_this__u8e3s4), ignoreCase) >= 0;
|
|
9876
|
-
}
|
|
9877
|
-
return tmp;
|
|
9878
|
-
}
|
|
9879
|
-
function padStart(_this__u8e3s4, length, padChar) {
|
|
9880
|
-
padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
|
|
9881
|
-
return toString_1(padStart_0(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE(), length, padChar));
|
|
9882
|
-
}
|
|
9883
9883
|
function splitToSequence(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
9884
9884
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
9885
9885
|
limit = limit === VOID ? 0 : limit;
|
|
@@ -9997,51 +9997,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
9997
9997
|
var delimitersList = asList(delimiters);
|
|
9998
9998
|
return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda_0(delimitersList, ignoreCase));
|
|
9999
9999
|
}
|
|
10000
|
-
function indexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
10001
|
-
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
10002
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10003
|
-
var tmp;
|
|
10004
|
-
if (!ignoreCase && chars.length === 1) {
|
|
10005
|
-
tmp = typeof _this__u8e3s4 === 'string';
|
|
10006
|
-
} else {
|
|
10007
|
-
tmp = false;
|
|
10008
|
-
}
|
|
10009
|
-
if (tmp) {
|
|
10010
|
-
var char = single(chars);
|
|
10011
|
-
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
10012
|
-
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
10013
|
-
var str = toString(char);
|
|
10014
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
10015
|
-
return _this__u8e3s4.indexOf(str, startIndex);
|
|
10016
|
-
}
|
|
10017
|
-
var inductionVariable = coerceAtLeast(startIndex, 0);
|
|
10018
|
-
var last = get_lastIndex_1(_this__u8e3s4);
|
|
10019
|
-
if (inductionVariable <= last)
|
|
10020
|
-
do {
|
|
10021
|
-
var index = inductionVariable;
|
|
10022
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
10023
|
-
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
10024
|
-
var tmp$ret$3;
|
|
10025
|
-
$l$block: {
|
|
10026
|
-
// Inline function 'kotlin.collections.any' call
|
|
10027
|
-
var inductionVariable_0 = 0;
|
|
10028
|
-
var last_0 = chars.length;
|
|
10029
|
-
while (inductionVariable_0 < last_0) {
|
|
10030
|
-
var element = chars[inductionVariable_0];
|
|
10031
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
10032
|
-
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
10033
|
-
tmp$ret$3 = true;
|
|
10034
|
-
break $l$block;
|
|
10035
|
-
}
|
|
10036
|
-
}
|
|
10037
|
-
tmp$ret$3 = false;
|
|
10038
|
-
}
|
|
10039
|
-
if (tmp$ret$3)
|
|
10040
|
-
return index;
|
|
10041
|
-
}
|
|
10042
|
-
while (!(index === last));
|
|
10043
|
-
return -1;
|
|
10044
|
-
}
|
|
10045
10000
|
function indexOf_3(_this__u8e3s4, other, startIndex, endIndex, ignoreCase, last) {
|
|
10046
10001
|
last = last === VOID ? false : last;
|
|
10047
10002
|
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), coerceAtMost_0(endIndex, charSequenceLength(_this__u8e3s4))) : downTo(coerceAtMost_0(startIndex, get_lastIndex_1(_this__u8e3s4)), coerceAtLeast(endIndex, 0));
|
|
@@ -10097,6 +10052,51 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
10097
10052
|
sb.g(_this__u8e3s4);
|
|
10098
10053
|
return sb;
|
|
10099
10054
|
}
|
|
10055
|
+
function indexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
10056
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
10057
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10058
|
+
var tmp;
|
|
10059
|
+
if (!ignoreCase && chars.length === 1) {
|
|
10060
|
+
tmp = typeof _this__u8e3s4 === 'string';
|
|
10061
|
+
} else {
|
|
10062
|
+
tmp = false;
|
|
10063
|
+
}
|
|
10064
|
+
if (tmp) {
|
|
10065
|
+
var char = single(chars);
|
|
10066
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
10067
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
10068
|
+
var str = toString(char);
|
|
10069
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
10070
|
+
return _this__u8e3s4.indexOf(str, startIndex);
|
|
10071
|
+
}
|
|
10072
|
+
var inductionVariable = coerceAtLeast(startIndex, 0);
|
|
10073
|
+
var last = get_lastIndex_1(_this__u8e3s4);
|
|
10074
|
+
if (inductionVariable <= last)
|
|
10075
|
+
do {
|
|
10076
|
+
var index = inductionVariable;
|
|
10077
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
10078
|
+
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
10079
|
+
var tmp$ret$3;
|
|
10080
|
+
$l$block: {
|
|
10081
|
+
// Inline function 'kotlin.collections.any' call
|
|
10082
|
+
var inductionVariable_0 = 0;
|
|
10083
|
+
var last_0 = chars.length;
|
|
10084
|
+
while (inductionVariable_0 < last_0) {
|
|
10085
|
+
var element = chars[inductionVariable_0];
|
|
10086
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
10087
|
+
if (equals_1(element, charAtIndex, ignoreCase)) {
|
|
10088
|
+
tmp$ret$3 = true;
|
|
10089
|
+
break $l$block;
|
|
10090
|
+
}
|
|
10091
|
+
}
|
|
10092
|
+
tmp$ret$3 = false;
|
|
10093
|
+
}
|
|
10094
|
+
if (tmp$ret$3)
|
|
10095
|
+
return index;
|
|
10096
|
+
}
|
|
10097
|
+
while (!(index === last));
|
|
10098
|
+
return -1;
|
|
10099
|
+
}
|
|
10100
10100
|
function calcNext_0($this) {
|
|
10101
10101
|
if ($this.ih_1 < 0) {
|
|
10102
10102
|
$this.gh_1 = 0;
|
|
@@ -10936,9 +10936,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
10936
10936
|
_.$_$.c3 = checkIndexOverflow;
|
|
10937
10937
|
_.$_$.d3 = collectionSizeOrDefault;
|
|
10938
10938
|
_.$_$.e3 = contains_0;
|
|
10939
|
-
_.$_$.f3 =
|
|
10940
|
-
_.$_$.g3 =
|
|
10941
|
-
_.$_$.h3 =
|
|
10939
|
+
_.$_$.f3 = contentEquals_0;
|
|
10940
|
+
_.$_$.g3 = contentEquals;
|
|
10941
|
+
_.$_$.h3 = contentEquals_1;
|
|
10942
10942
|
_.$_$.i3 = copyOfRange;
|
|
10943
10943
|
_.$_$.j3 = copyOf;
|
|
10944
10944
|
_.$_$.k3 = copyOf_0;
|