Got rid of "tuple" word all over the code.

This commit is contained in:
Evgeny Gerashchenko
2013-03-19 23:43:37 +04:00
parent 0b41436e7a
commit 5ccbce6de6
26 changed files with 35 additions and 50 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ public fun Json.set(paramName : String, value : Any?) : Unit = js.noImpl
library("jsonGet")
public fun Json.get(paramName : String) : Any? = js.noImpl
library("jsonFromTuples")
library("jsonFromPairs")
public fun json(vararg pairs : Pair<String, Any?>) : Json = js.noImpl
library("jsonFromTuples")
library("jsonFromPairs")
public fun json2(pairs : Array<Pair<String, Any?>>) : Json = js.noImpl
library("jsonAddProperties")
+1 -1
View File
@@ -106,7 +106,7 @@ native public fun String.getBytes(charset : java.nio.charset.Charset) : ByteArra
native public fun String.getBytes(charsetName : String) : ByteArray = (this as java.lang.String).getBytes(charsetName)!!
native public fun String.getChars(srcBegin : Int, srcEnd : Int, dst : CharArray, dstBegin : Int) : Tuple0 = (this as java.lang.String).getChars(srcBegin, srcEnd, dst, dstBegin)!!
native public fun String.getChars(srcBegin : Int, srcEnd : Int, dst : CharArray, dstBegin : Int) : Unit = (this as java.lang.String).getChars(srcBegin, srcEnd, dst, dstBegin)!!
native public fun String.intern() : String = (this as java.lang.String).intern()!!
+2 -2
View File
@@ -8,10 +8,10 @@ public fun <K, V> MutableMap<K, V>.set(key : K, value : V): Unit {
}
/**
* Returns a new [[HashMap]] populated with the given tuple values where the first value in each tuple
* Returns a new [[HashMap]] populated with the given pairs where the first value in each pair
* is the key and the second value is the value
*
* @includeFunctionBody ../../test/MapTest.kt createUsingTuples
* @includeFunctionBody ../../test/MapTest.kt createUsingPairs
*/
public inline fun <K,V> hashMap(vararg values: Pair<K,V>): HashMap<K,V> {
val answer = HashMap<K,V>()
+1 -1
View File
@@ -531,7 +531,7 @@ var kotlin = {set:function (receiver, key, value) {
return obj.toString();
};
Kotlin.jsonFromTuples = function (pairArr) {
Kotlin.jsonFromPairs = function (pairArr) {
var i = pairArr.length;
var res = {};
while (i > 0) {