File tree Expand file tree Collapse file tree 8 files changed +21
-38
lines changed
buildSrc/src/main/kotlin/buildsrc
commonMain/kotlin/net/thauvin/erik/urlencoder
commonTest/kotlin/net/thauvin/erik/urlencoder
commonMain/kotlin/net/thauvin/erik/urlencoder
commonTest/kotlin/net/thauvin/erik/urlencoder Expand file tree Collapse file tree 8 files changed +21
-38
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
10
10
* version catalog.
11
11
*/
12
12
internal fun Project.relocateKotlinJsStore () {
13
- afterEvaluate {
14
- rootProject.extensions.configure<YarnRootExtension > {
15
- lockFileDirectory = project.rootDir.resolve(" gradle/kotlin-js-store" )
16
- }
17
- }
13
+ afterEvaluate {
14
+ rootProject.extensions.configure<YarnRootExtension > {
15
+ lockFileDirectory = project.rootDir.resolve(" gradle/kotlin-js-store" )
16
+ }
17
+ }
18
18
}
Original file line number Diff line number Diff line change 1
- /*
2
- * Copyright 2001-2023 Geert Bevin (gbevin[remove] at uwyn dot com)
3
- * Copyright 2022-2023 Erik C. Thauvin (erik@thauvin.net)
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
1
package buildsrc.conventions
18
2
19
3
plugins {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2001-2023 Geert Bevin (gbevin[remove] at uwyn dot com)
3
- * Copyright 2022-2023 Erik C. Thauvin (erik@thauvin.net)
2
+ * Copyright 2001-2024 the original author or authors.
4
3
*
5
4
* Licensed under the Apache License, Version 2.0 (the "License");
6
5
* you may not use this file except in compliance with the License.
7
6
* You may obtain a copy of the License at
8
7
*
9
- * http ://www.apache.org/licenses/LICENSE-2.0
8
+ * https ://www.apache.org/licenses/LICENSE-2.0
10
9
*
11
10
* Unless required by applicable law or agreed to in writing, software
12
11
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -48,10 +47,10 @@ class Rife2TestListener(
48
47
.uri(
49
48
URI (
50
49
" https://rife2.com/tests-badge/update/net.thauvin.erik/urlencoder?" +
51
- " apiKey=$apiKey &" +
52
- " passed=$passed &" +
53
- " failed=$failed &" +
54
- " skipped=$skipped "
50
+ " apiKey=$apiKey &" +
51
+ " passed=$passed &" +
52
+ " failed=$failed &" +
53
+ " skipped=$skipped "
55
54
)
56
55
)
57
56
.POST (HttpRequest .BodyPublishers .noBody())
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2001-2023 the original author or authors.
2
+ * Copyright 2001-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2001-2023 the original author or authors.
2
+ * Copyright 2001-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ class UrlEncoderTest {
29
29
val validMap = listOf (
30
30
" a test &" to " a%20test%20%26" ,
31
31
" !abcdefghijklmnopqrstuvwxyz%%ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789-_.~=" to
32
- " %21abcdefghijklmnopqrstuvwxyz%25%25ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789-_.%7E%3D" ,
32
+ " %21abcdefghijklmnopqrstuvwxyz%25%25ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789-_.%7E%3D" ,
33
33
" %#okékÉȢ smile!😁" to " %25%23ok%C3%A9k%C3%89%C8%A2%20smile%21%F0%9F%98%81" ,
34
34
" \uD808\uDC00\uD809\uDD00\uD808\uDF00\uD808\uDD00 " to " %F0%92%80%80%F0%92%94%80%F0%92%8C%80%F0%92%84%80" ,
35
35
)
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2001-2023 the original author or authors.
2
+ * Copyright 2001-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -59,15 +59,15 @@ internal object Character {
59
59
internal fun lowSurrogateOf (codePoint : Int ): Char =
60
60
((codePoint and 0x3FF ) + MIN_LOW_SURROGATE .code).toChar()
61
61
62
- // private const val MIN_CODE_POINT: Int = 0x000000
62
+ // private const val MIN_CODE_POINT: Int = 0x000000
63
63
private const val MAX_CODE_POINT : Int = 0x10FFFF
64
64
65
65
private const val MIN_SUPPLEMENTARY_CODE_POINT : Int = 0x10000
66
66
67
67
private const val SURROGATE_DECODE_OFFSET : Int =
68
68
MIN_SUPPLEMENTARY_CODE_POINT -
69
- (MIN_HIGH_SURROGATE .code shl 10 ) -
70
- MIN_LOW_SURROGATE .code
69
+ (MIN_HIGH_SURROGATE .code shl 10 ) -
70
+ MIN_LOW_SURROGATE .code
71
71
72
72
private const val HIGH_SURROGATE_ENCODE_OFFSET : Char = MIN_HIGH_SURROGATE - (MIN_SUPPLEMENTARY_CODE_POINT ushr 10 )
73
73
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2001-2023 the original author or authors.
2
+ * Copyright 2001-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2001-2023 the original author or authors.
2
+ * Copyright 2001-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ class UrlEncoderUtilTest {
31
31
val validMap = listOf (
32
32
" a test &" to " a%20test%20%26" ,
33
33
" !abcdefghijklmnopqrstuvwxyz%%ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789-_.~=" to
34
- " %21abcdefghijklmnopqrstuvwxyz%25%25ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789-_.%7E%3D" ,
34
+ " %21abcdefghijklmnopqrstuvwxyz%25%25ABCDEFGHIJKLMNOPQRSTUVQXYZ0123456789-_.%7E%3D" ,
35
35
" %#okékÉȢ smile!😁" to " %25%23ok%C3%A9k%C3%89%C8%A2%20smile%21%F0%9F%98%81" ,
36
36
" \uD808\uDC00\uD809\uDD00\uD808\uDF00\uD808\uDD00 " to " %F0%92%80%80%F0%92%94%80%F0%92%8C%80%F0%92%84%80" ,
37
37
)
You can’t perform that action at this time.
0 commit comments