Ilya Gorbunov
25cfd36e7c
drop, take: combine implementations for Collections, Lists and Iterables.
...
slice: predict length of resulting list.
2015-03-25 03:26:18 +03:00
Ilya Gorbunov
4a7918b0a1
Add takeLast method for String, lists and arrays.
...
Check the parameter n in drop, take and takeLast methods.
2015-03-25 03:26:06 +03:00
Ilya Gorbunov
05b5afcb94
Add removePrefix, removeSuffix, removeEnclosing methods.
...
Deprecate trimLeading/trimTrailing/trim(String) methods in favor of new ones.
2015-03-25 03:25:53 +03:00
Ilya Gorbunov
0484d3bf2f
Imperative trim implementation to prevent double lambda expansion in inline function.
2015-03-25 03:25:40 +03:00
Ilya Gorbunov
5b2a5c78ca
Fix js-stdlib compilation and tests.
2015-03-25 03:25:27 +03:00
Ilya Gorbunov
4c58f4ec20
Add removeRange method.
...
Breaking change in replaceRange(IntRange, String) method: the end index of the range now is included in the part being replaced.
2015-03-25 03:25:14 +03:00
Ilya Gorbunov
ba15e5b295
Trimming and padding methods.
...
Kinda breaking change: Char.isWhitespace treats non-breaking spaces as whitespace too to match the Unicode definition of whitespace.
2015-03-25 03:25:01 +03:00
Ilya Gorbunov
0580039ded
Provide additional string conversion methods to match missing java.lang.String constructors.
...
Fixes KT-5019
2015-03-25 03:24:48 +03:00
Mikhail Glukhikh
2bc124fa3d
IO second review: empty File.subPath() allowed, OutputStream.bufferedWriter() added,
...
normalize(), startsWith(), endsWith() rewritten, LinesStream --> LinesSequence,
File.replaceBytes() / replaceText() rolled back to writeBytes() / writeText(),
some exception messages formulated more clearly, refactorings, comments,
relativeTo() slightly optimized, additional tests
2015-03-24 19:52:19 +03:00
Mikhail Glukhikh
88733d34eb
Additional fix of String.getRootName() for network names, relevant test fixes
2015-03-24 19:40:24 +03:00
Mikhail Glukhikh
5b636eef7b
Kotlin I/O review/M11 fixes: Stream --> Sequence, recurse() returned back,
...
additional helpers like File.bufferedReader() and String.byteInputStream(),
copyRecursively / deleteRecursively were rewritten using FileTreeWalk,
FilePathComponents introduced as a replacement of FileIterator,
classes / methods / properties permissions fixed, Linux specific things,
resolveSibling rewritten using FilePathComponents
2015-03-24 19:40:21 +03:00
Denis Mekhanikov
f560677b15
Kotlin I/O new features: relativeTo, copyTo, copyRecursively, deleteRecursively, file tree walkers,
...
file component iterators, file roots, startsWith, endsWith, subPath, normalize, replaceBytes, replaceTest,
additional tests and comments
2015-03-24 19:40:19 +03:00
Dmitry Jemerov
bd1a116c9e
add documentation for recently added packages
2015-03-23 18:52:27 +01:00
Dmitry Jemerov
00697bf764
use new structure for module.md
2015-03-23 13:10:16 +01:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Pavel V. Talanov
2a6facaef6
default -> companion: default object -> class object in project code, builtins and libs code
2015-03-17 15:46:48 +03:00
Ilya Ryzhenkov
4fa5d9cb48
Fix double "deprecated" annotation in generated sources which confuses DX compiler.
2015-03-13 19:30:46 +03:00
Ilya Ryzhenkov
e448f40756
Rename Stream<T> to Sequence<T> and provide migration path via deprecated types and functions.
2015-03-12 22:56:43 +03:00
Dmitry Jemerov
32072d0a4f
More standard library documentation.
2015-03-12 16:52:20 +01:00
Alexander Udalov
a01ffd70e7
Fix NoInternalVisibilityInStdLibTest in maven build
...
Create disposable in setUp(), destroy in tearDown()
2015-03-10 16:13:50 +03:00
Ilya Ryzhenkov
e00cdfc8e1
toSortedMap() without a comparator requires keys that are Comparable.
2015-03-10 11:21:41 +03:00
Ilya Ryzhenkov
bfeb21afb0
stdlib: stream() for Map #KT-6547 Fixed
2015-03-10 11:21:41 +03:00
Valery Kharitonov
8873be22d5
Implemented asList() method for arrays. #KT-1313 Fixed
2015-03-10 11:21:40 +03:00
Valery Kharitonov
c8094e7587
Implemented indexOfFirst/Last(predicate). #KT-6577 Fixed
2015-03-10 11:21:40 +03:00
Valery Kharitonov
38a4f86db2
Implemented asIterable method for arrays. #KT-1313 Fixed
2015-03-10 11:21:39 +03:00
Laszlo Hornyak
3954215b50
Add support for + and - operators in immutable maps #KT-6594 Fixed
2015-03-10 11:21:38 +03:00
Ilya Ryzhenkov
1a67e35739
Add more tests to cover stdlib
2015-03-10 11:21:38 +03:00
Andrey Breslav
bbb59773aa
filesToAnalyzeCompletely removed
2015-03-06 21:59:05 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Evgeny Gerashchenko
06e3b5937f
Fixed compilation.
2015-03-06 13:43:02 +03:00
Dmitry Jemerov
dbe9a70fbd
standard library deprecations, now with proper messages
2015-03-05 16:32:22 +01:00
Nikolay Krasko
d827038f7c
Fix test
2015-03-05 12:01:42 +03:00
Nikolay Krasko
30a50746b5
Intrinsic default objects implementation: tests
2015-03-05 01:30:38 +03:00
Nikolay Krasko
1f79e0905f
Intrinsic default objects implementation
2015-03-05 01:30:37 +03:00
Dmitry Jemerov
2cc291efdb
Standard library documentation continued.
2015-03-03 11:20:30 +01:00
Pavel V. Talanov
b012b9d8a3
Stdlib: Move classes out of class object in FunctionalList
2015-03-03 13:04:29 +03:00
Dmitry Jemerov
2e208c4294
revert incorrect deprecations
2015-03-02 22:16:52 +01:00
Dmitry Jemerov
f41a0a328f
don't deprecate AbstractIterator for now
2015-03-02 18:19:56 +01:00
Dmitry Jemerov
afafdb31ee
deprecate some legacy code in the standard library
2015-03-02 18:17:17 +01:00
Evgeny Gerashchenko
145bd077fc
Merge pull request #570 from JetBrains/rr/yole/generate-more-stdlib
...
Replace some manually duplicated stdlib method implementations with generated code
2015-02-11 17:26:30 +04:00
Dmitry Jemerov
2963aea6b9
doc review
2015-02-11 12:38:07 +01:00
Dmitry Jemerov
fe704d6042
More standard library documentation updates.
2015-02-10 19:44:17 +01:00
Dmitry Jemerov
4352023d60
generate more methods and properties in the standard library
2015-02-10 14:31:20 +01:00
Dmitry Jemerov
7827bbf64b
Standard library documentation updates.
2015-02-09 19:19:29 +01:00
Valentin Kipyatkov
9317593565
Fixed test data to be compilable with new import rules
2015-01-21 20:10:17 +03:00
Ilya Ryzhenkov
3a9e41f2d7
stdlib: Pair and Triple .toList()
2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov
95d4accda7
stdlib: add flatten()
2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov
1d4591d99c
stdlib: add sumBy(function)
2015-01-20 22:39:23 +03:00
Ilya Ryzhenkov
4ee64d7283
Covering stdlib with tests.
2015-01-20 22:37:16 +03:00
Ilya Ryzhenkov
c3eaf1b869
Fix return type of linkedHashSetOf to be more specific.
2015-01-20 22:37:16 +03:00