From a14c9a34b30a081e9265171c8a58b0007b1f9622 Mon Sep 17 00:00:00 2001 From: hfhbd <22521688+hfhbd@users.noreply.github.com> Date: Sat, 17 Aug 2024 11:23:01 +0200 Subject: [PATCH] Rename converter to lowercase --- .../src/appleMain/kotlin/kotlinx/uuid/Converter.kt | 6 +++--- .../appleTest/kotlin/kotlinx/uuid/NsUUIDConvertingTest.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kotlinx-uuid-core/src/appleMain/kotlin/kotlinx/uuid/Converter.kt b/kotlinx-uuid-core/src/appleMain/kotlin/kotlinx/uuid/Converter.kt index 7a8850b..2121eae 100644 --- a/kotlinx-uuid-core/src/appleMain/kotlin/kotlinx/uuid/Converter.kt +++ b/kotlinx-uuid-core/src/appleMain/kotlin/kotlinx/uuid/Converter.kt @@ -7,13 +7,13 @@ package kotlinx.uuid import kotlin.uuid.Uuid /** - * Converts this [platform.Foundation.NSUUID][platform.Foundation.NSUUID] value to a [kotlinx.uuid.UUID][UUID] value + * Converts this [platform.Foundation.NSUUID][platform.Foundation.NSUUID] value to a [kotlin.uuid.UUID][Uuid] value * by using the [UUIDString][platform.Foundation.NSUUID.UUIDString] representation. */ -public fun platform.Foundation.NSUUID.toKotlinUUID(): Uuid = Uuid.parse(UUIDString) +public fun platform.Foundation.NSUUID.toKotlinUuid(): Uuid = Uuid.parse(UUIDString) /** - * Converts this [kotlinx.uuid.UUID][UUID] value to a [platform.Foundation.NSUUID][platform.Foundation.NSUUID] value + * Converts this [kotlin.uuid.Uuid][Uuid] value to a [platform.Foundation.NSUUID][platform.Foundation.NSUUID] value * by using the default [toString] representation. */ public fun Uuid.toNsUUID(): platform.Foundation.NSUUID = platform.Foundation.NSUUID(toString()) diff --git a/kotlinx-uuid-core/src/appleTest/kotlin/kotlinx/uuid/NsUUIDConvertingTest.kt b/kotlinx-uuid-core/src/appleTest/kotlin/kotlinx/uuid/NsUUIDConvertingTest.kt index 375fe2f..6bad1d6 100644 --- a/kotlinx-uuid-core/src/appleTest/kotlin/kotlinx/uuid/NsUUIDConvertingTest.kt +++ b/kotlinx-uuid-core/src/appleTest/kotlin/kotlinx/uuid/NsUUIDConvertingTest.kt @@ -23,7 +23,7 @@ class NsUUIDConvertingTest { @Test fun fromNsUUID() { val nsUUID = platform.Foundation.NSUUID(SOME_UUID_STRING) - val kotlinUUID = nsUUID.toKotlinUUID() + val kotlinUUID = nsUUID.toKotlinUuid() assertEquals(SOME_UUID_STRING, kotlinUUID.toString()) } }