Ilya Ryzhenkov
828ba385ea
Cleanup ordering, improve API
2014-12-16 17:33:20 +03:00
Ilya Ryzhenkov
e890c2ee0d
Deprecate withIndicies(), introduce optimized and fixed withIndex and forEachIndexed()
2014-12-16 17:33:20 +03:00
Andrey Breslav
cba6652c05
Simplistic support for native flag
2014-12-16 15:17:33 +03:00
Svetlana Isakova
5b4f10e698
Made vararg parameters have Array<out T> type
...
instead of simply Array<T>
#KT-1638 Fixed
#KT-2163 Fixed
#KT-3213 Fixed
#KT-4172 Fixed
#KT-5534 Fixed
2014-12-12 23:08:28 +03:00
Denis Zharkov
d345ba05dd
Added inline function "Array" into stdlib
...
It has the same signature and semantics as Array constructor had
Also made Array constructor private and accepting no arguments
2014-12-11 16:04:03 +03:00
Alexander Udalov
8dae1b62dd
Add CharSequence.subSequence
...
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.
#KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Alexander Udalov
4d95bcfc7e
Rename CharSequence.get to charAt
...
This is done for JVM interoperability. There's still a member function
String.get() and an extension function "get" on CharSequence
#KT-1730 Fixed
#KT-5389 Fixed
2014-11-27 20:38:18 +03:00
Alexander Udalov
a7b88e9485
Make CharSequence.length a function instead of property
...
And String.length as well.
This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.
A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)
#KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Zalim Bashorov
eae86e035f
Minor in stdlib: move String.trimLeading and String.trimTrailing to common place.
2014-11-18 15:57:50 +03:00
Stanislav Erokhin
65c9ea2465
Fix variance problems.
2014-11-17 17:45:05 +03:00
Alexander Udalov
93696ff9bd
Make Array.indices extension property, move to stdlib
...
This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
2014-11-17 15:20:44 +03:00
Alexander Udalov
36a9a99b4f
Minor, fix formatting in Arrays.kt in stdlib
2014-11-17 15:02:39 +03:00
Alexander Udalov
128c938965
Make Array.size() a function instead of a property
...
Also add a deprecated extension property to help migration. This is done to
unify getting size of arrays and collections
2014-11-17 15:02:38 +03:00
Denis Zharkov
e768b4e285
stdlib: Introduced filterIsInstance version
...
without class-literal as a parameter
2014-11-13 20:56:10 +03:00
Denis Zharkov
da5164acd8
stdlib: Introduced Array<T>?.orEmpty() in JVM-stdlib
2014-11-13 20:56:10 +03:00
Denis Mekhanikov
323df9498a
stdlib: fix DropStream & TakeStream mutliple iteration
2014-11-07 17:14:58 +03:00
Denis Mekhanikov
495967a573
stdlib: fix documentation for some IO functions
2014-11-07 17:14:57 +03:00
Denis Mekhanikov
23397d17dc
stdlib: simplify File.recurse and File.extension functions
2014-11-07 17:14:56 +03:00
Denis Mekhanikov
1a4c11cb98
stdlib: rearrange IO functions
2014-11-07 17:14:56 +03:00
Ilya Ryzhenkov
656bd028bc
Remove dead commented code.
2014-11-06 16:45:58 +03:00
Ilya Ryzhenkov
2e154b73de
Support componentN for arrays and lists #KT-5538 Fixed
2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov
c2fabf5736
Comparator<T> replaced with Comparator<in T> #KT-6030 Fixed
2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov
24ee79aa2d
Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed
2014-11-06 16:45:56 +03:00
Ilya Ryzhenkov
0dc68c2702
Avoid using negative in descending sorts.
2014-11-06 16:45:56 +03:00
Michael Bogdanov
25d7c9f20a
Enabled disabled non-local returns in stdlib
2014-10-28 19:14:14 +03:00
Zalim Bashorov
ecb955f5b3
Stdlib: split OrderingJVM.kt to common and jvm parts
2014-10-13 21:25:55 +04:00
Zalim Bashorov
1b2aa205ec
Introduce assertNotEquals
2014-10-13 21:25:55 +04:00
Zalim Bashorov
7a51ef5723
Stdlib: fix build -- use named object instead of instance of Any because Any not mapped yet in JS backend.
2014-10-06 23:18:51 +04:00
Zalim Bashorov
0cac7c32b6
Stdlib: Deprecated.kt splitted to common and jvm parts.
2014-10-06 23:18:50 +04:00
Zalim Bashorov
3bc80a6d05
Stdlib: Char.kt splitted to common and jvm parts.
2014-10-06 23:18:50 +04:00
Zalim Bashorov
d7dfbe40a4
Stdlib: moved CharSequence.size and String.size to StringJVM.kt because they are intrinsic in JS.
2014-10-06 23:18:50 +04:00
Zalim Bashorov
4ba4484683
Stdlib: moved setOf and linkedListOf from JUtilJVM.kt to JUtil.kt.
2014-10-06 23:18:49 +04:00
Ilya Ryzhenkov
bf368b2bc2
Restore accidentally removed String.getBytes() and mark as deprecated (discouraged).
2014-09-26 16:28:08 +04:00
Ilya Ryzhenkov
fabdc1fd32
Add Typography constants.
2014-09-26 01:55:08 +04:00
Ilya Ryzhenkov
350d446031
Make UTF-8 default for delegated java.lang.util functions. Convert getBytes() to toByteArray() to make it clear of copy operation.
2014-09-26 01:55:07 +04:00
Ilya Ryzhenkov
7616d3e18a
Unify charset-related APIs to use Charsets.UTF_8 as default. (Manual merge of PR#491)
...
Minor cleanup.
2014-09-26 01:55:07 +04:00
Ilya Ryzhenkov
7c61c36746
Rename encoding to charset for consistency
2014-09-26 01:55:06 +04:00
Ilya Ryzhenkov
4cdcadef9f
Add 6 standard charsets.
2014-09-26 01:55:06 +04:00
Ilya Ryzhenkov
ea8977c5b5
Minor: code formatting
2014-09-26 01:55:05 +04:00
Ilya Ryzhenkov
c5c1ecf6c0
Improve Streams implementation for performance and validity (based on JMH research)
2014-09-26 01:33:51 +04:00
Ilya Ryzhenkov
c074b4317e
Cleanup concurrent
2014-09-24 17:39:47 +04:00
Ilya Ryzhenkov
a6d2624807
Cleanup test helpers.
2014-09-24 17:39:47 +04:00
Ilya Ryzhenkov
f2b9b370e1
Clean Dom and Dom tests.
2014-09-24 17:39:46 +04:00
Zalim Bashorov
b28b0046d1
Minor: drop obsolete code.
2014-09-16 19:32:37 +04:00
Michael Bogdanov
08e02f4176
Moving platformStatic annotation to kotlin.platform package
2014-09-10 17:35:59 +04:00
Pavel V. Talanov
cb02f6223b
Stdlib: javaClass() type parameter has Any upperbound
2014-08-14 20:54:14 +04:00
Pavel V. Talanov
bcaddd7143
Stdlib: javaClass type parameter has Any upperbound
2014-08-14 19:59:22 +04:00
Pavel V. Talanov
bff579dd1e
Stdlib minor: Remove unused ChangeEvent#propogationId
2014-07-29 21:01:18 +04:00
Pavel V. Talanov
f678918b86
Stdlib minor: Remove unused AbstractIterator#peek()
2014-07-29 21:01:16 +04:00
Pavel V. Talanov
e4de6f5e31
Stdlib minor: Make kotlin.support.State enum
2014-07-29 21:01:14 +04:00