Nikolay Krasko
2946c1d6a8
KT-7271 Accessing an extension property of Char.Companion leads to ClassNotFoundException in runtime
...
#KT-7271 Fixed
2015-04-07 15:59:05 +03:00
Ilya Gorbunov
fbb567c11a
Iterator<T> can be converted to a sequence constrained to be one-time iterable.
2015-04-07 15:35:01 +03:00
Ilya Gorbunov
f2d865e836
Provide constrainOnce extension method for the Sequence.
...
Sequence created from the generator function without an initial value can be iterated only once.
The same is for BufferedReader.lines sequence.
2015-04-07 15:34:59 +03:00
Ilya Gorbunov
698ffa2807
A sequence constructed with initialValue can be iterated multiple times.
2015-04-07 15:31:00 +03:00
Stanislav Erokhin
b703f59e04
Migrate kotlin sources, maven projects and stdlib to new lambda syntax
2015-04-07 13:08:53 +03:00
Stanislav Erokhin
4ef086ea57
Minor. Removed obsolete comment
2015-04-07 13:08:51 +03:00
Stanislav Erokhin
6ab83c9b8c
Added init keyword to builtins, maven projects and stdlib
2015-04-07 13:08:50 +03:00
Ilya Gorbunov
7cac6e3c5e
Provide String.commonPrefixWith and String.commonSuffixWith methods.
...
Char.isHighSurrogate and Char.isLowSurrogate now available in js-stdlib too.
2015-04-07 03:15:03 +03:00
Ilya Gorbunov
70cc7fbf1f
Remove never intentionally used String.hashCode extension.
2015-04-07 03:14:49 +03:00
Ilya Gorbunov
91decc9f33
Add String.contains with Char argument. Fixes #KT-7239.
2015-04-07 03:14:36 +03:00
Ilya Gorbunov
cb85d335ba
Correct deprecated message for trim()
...
Correct documentation description.
2015-04-07 03:14:22 +03:00
Michael Nedzelsky
1c7e1ddf26
JS: remove LibrarySourcesConfigWithCaching, introduce LibrarySourceConfig.Builder
2015-04-03 05:36:18 +03:00
Michael Nedzelsky
0951d69bdc
JS: add metaInfo attribute to Config
2015-04-03 05:35:56 +03:00
Dmitry Jemerov
7b507276ed
frontend diagnostics for kotlin.jvm.overloads
...
#KT-7203 Fixed
2015-04-02 20:30:36 +02:00
Dmitry Jemerov
e15b984232
Implement kotlin.jvm.overloads annotation for generating all overloads of a method that has default parameter values.
...
#KT-2095 Fixed
2015-04-02 20:30:01 +02:00
Pavel V. Talanov
cb7617b3ca
Refactor CompilerConfiguration: keys -> Content roots
...
Represent classpath roots and java source roots as separate entities
2015-04-02 16:13:06 +03:00
Ilya Gorbunov
cac058d5a3
Fix endsWith in JS always ignored character case, regardless of the ignoreCase parameter value.
...
startsWith, endsWith again use native implementation when possible.
2015-04-01 23:10:14 +03:00
Ilya Gorbunov
0717705f15
Add requireNotNull with lazy message.
2015-04-01 22:28:47 +03:00
Ilya Gorbunov
f87dcff723
Fixed #KT-6476. last(predicate) and lastOrNull(predicate) use reverse iteration when possible.
2015-04-01 15:51:08 +03:00
Ilya Gorbunov
850d79e61a
Remove negative variants of isEmpty and isBlank (may be included later).
2015-04-01 15:40:18 +03:00
Ilya Gorbunov
ac4b207413
Add isEmpty, isBlank methods and their nullable and negating couterparts.
2015-04-01 15:40:17 +03:00
Ilya Gorbunov
536a977f5c
indexOfAny, lastIndexOfAny return an index value only (similar to indexOf, lastIndexOf).
...
findAnyOf, findLastAnyOf introduced to cover the case when an index and a matched string value is required.
2015-03-31 02:25:19 +03:00
Ilya Gorbunov
bb8df6be4b
Restore startsWith and endsWith overloads taking single char to keep binary compatibility with markdown parser.
2015-03-31 02:25:04 +03:00
Ilya Gorbunov
b3165ac771
Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path.
2015-03-31 02:24:50 +03:00
Ilya Gorbunov
d724ce3f7e
Add code generation for asList methods in js.libraries.
2015-03-31 02:24:20 +03:00
Ilya Gorbunov
abdac27b61
Modify split(String) usages within stdlib.
2015-03-31 02:24:06 +03:00
Ilya Gorbunov
6f7a4d8429
Add methods for String: indexOfAny, lastIndexOfAny, indexOf, lastIndexOf, rangesDelimitedBy, splitToSequence, split, lineSequence, lines.
...
Add methods for Char: toUpperCase, toLowerCase.
Add an optional boolean parameter ignoreCase to the methods Char.equals, String.equals, String.startsWith, String.endsWith, String.contains.
2015-03-31 02:23:52 +03:00
Pavel V. Talanov
d109facc6f
Convert JetCoreEnvironment: migrate code in libraries
2015-03-30 15:13:05 +03:00
Mikhail Glukhikh
ef6698bd52
Test fixed
2015-03-30 10:55:24 +03:00
Mikhail Glukhikh
5d7e388276
Fix of KT-7130
2015-03-30 10:55:21 +03:00
Pavel V. Talanov
ed218c473a
Get rid of 'class object' usages in code and builtins
...
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00
Ilya Gorbunov
a34e15e157
Rename methods: trimLeft/Right -> trimStart/End, padLeft/Right -> padStart/End
2015-03-25 03:26:31 +03:00
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