react-native-nitro-input 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +43 -1
- package/android/CMakeLists.txt +4 -0
- package/android/gradle.properties +1 -1
- package/android/src/main/cpp/JRollingEngine.cpp +3 -2
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +20 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatform.kt +209 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +25 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +69 -10
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +164 -24
- package/android/src/main/java/com/margelo/nitro/nitroinput/RollingEngine.kt +2 -1
- package/cpp/RollingEngine.cpp +12 -2
- package/cpp/RollingEngine.hpp +8 -1
- package/cpp/numberformat/HybridNitroNumberFormat.cpp +498 -0
- package/cpp/numberformat/HybridNitroNumberFormat.hpp +74 -0
- package/cpp/numberformat/HybridNitroNumberFormatFactory.hpp +11 -0
- package/cpp/numberformat/NumberFormatCore.cpp +629 -0
- package/cpp/numberformat/NumberFormatCore.hpp +154 -0
- package/cpp/numberformat/NumberFormatProbe.cpp +354 -0
- package/cpp/numberformat/NumberFormatProbe.hpp +63 -0
- package/ios/HybridNitroInputView.swift +15 -0
- package/ios/HybridNitroNumberFormatPlatform.swift +348 -0
- package/ios/HybridNitroNumberView.swift +19 -0
- package/ios/NitroInputView.swift +79 -19
- package/ios/NitroNumberView.swift +171 -31
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -0
- package/lib/commonjs/src/NitroInput.js +8 -6
- package/lib/commonjs/src/NitroNumber.js +4 -2
- package/lib/commonjs/src/NumberFormat.js +525 -0
- package/lib/commonjs/src/formatProps.js +48 -0
- package/lib/commonjs/src/index.js +3 -1
- package/lib/commonjs/src/specs/NumberFormat.nitro.js +2 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -0
- package/lib/module/src/NitroInput.js +8 -6
- package/lib/module/src/NitroNumber.js +4 -2
- package/lib/module/src/NumberFormat.js +521 -0
- package/lib/module/src/formatProps.js +45 -0
- package/lib/module/src/index.js +1 -0
- package/lib/module/src/specs/NumberFormat.nitro.js +1 -0
- package/lib/typescript/src/NitroInput.d.ts +22 -0
- package/lib/typescript/src/NitroNumber.d.ts +36 -1
- package/lib/typescript/src/NumberFormat.d.ts +47 -0
- package/lib/typescript/src/formatProps.d.ts +21 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +10 -0
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +13 -1
- package/lib/typescript/src/specs/NumberFormat.nitro.d.ts +139 -0
- package/nitro.json +16 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +6 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +28 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +45 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +10 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.cpp +118 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +54 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +12 -0
- package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.cpp +65 -0
- package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroNumberDirection.hpp +3 -0
- package/nitrogen/generated/android/c++/JNumberFormatCompactDisplay.hpp +58 -0
- package/nitrogen/generated/android/c++/JNumberFormatCurrencyDisplay.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatCurrencySign.hpp +58 -0
- package/nitrogen/generated/android/c++/JNumberFormatNotation.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatPlatformOptions.hpp +161 -0
- package/nitrogen/generated/android/c++/JNumberFormatPlatformSymbols.hpp +89 -0
- package/nitrogen/generated/android/c++/JNumberFormatRoundingMode.hpp +79 -0
- package/nitrogen/generated/android/c++/JNumberFormatSignDisplay.hpp +67 -0
- package/nitrogen/generated/android/c++/JNumberFormatStyle.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatUnitDisplay.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +25 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatformSpec.kt +60 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +36 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroPlatformNumberFormatterSpec.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberDirection.kt +2 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCompactDisplay.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencyDisplay.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencySign.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatNotation.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformOptions.kt +136 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformSymbols.kt +91 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatRoundingMode.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatSignDisplay.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatStyle.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatUnitDisplay.kt +24 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +34 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +63 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +40 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +18 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +12 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +30 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.hpp +122 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +42 -0
- package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.hpp +94 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +30 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +36 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +5 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec_cxx.swift +159 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +6 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +144 -0
- package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec_cxx.swift +155 -0
- package/nitrogen/generated/ios/swift/NitroNumberDirection.swift +4 -0
- package/nitrogen/generated/ios/swift/NumberFormatCompactDisplay.swift +40 -0
- package/nitrogen/generated/ios/swift/NumberFormatCurrencyDisplay.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatCurrencySign.swift +40 -0
- package/nitrogen/generated/ios/swift/NumberFormatNotation.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatPlatformOptions.swift +159 -0
- package/nitrogen/generated/ios/swift/NumberFormatPlatformSymbols.swift +69 -0
- package/nitrogen/generated/ios/swift/NumberFormatRoundingMode.swift +68 -0
- package/nitrogen/generated/ios/swift/NumberFormatSignDisplay.swift +52 -0
- package/nitrogen/generated/ios/swift/NumberFormatStyle.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatUnitDisplay.swift +44 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +10 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +10 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.hpp +71 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +12 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +12 -0
- package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.hpp +65 -0
- package/nitrogen/generated/shared/c++/NitroNumberDirection.hpp +4 -0
- package/nitrogen/generated/shared/c++/NumberFormatCompactDisplay.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatCurrencyDisplay.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatCurrencySign.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatGrouping.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatNotation.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatOptions.hpp +193 -0
- package/nitrogen/generated/shared/c++/NumberFormatPart.hpp +87 -0
- package/nitrogen/generated/shared/c++/NumberFormatPlatformOptions.hpp +176 -0
- package/nitrogen/generated/shared/c++/NumberFormatPlatformSymbols.hpp +115 -0
- package/nitrogen/generated/shared/c++/NumberFormatRoundingMode.hpp +104 -0
- package/nitrogen/generated/shared/c++/NumberFormatRoundingPriority.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatSignDisplay.hpp +88 -0
- package/nitrogen/generated/shared/c++/NumberFormatStyle.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatTrailingZeroDisplay.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatUnitDisplay.hpp +80 -0
- package/nitrogen/generated/shared/c++/ResolvedNumberFormatOptions.hpp +197 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +10 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +15 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +12 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +18 -0
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -0
- package/package.json +2 -2
- package/src/NitroInput.tsx +42 -7
- package/src/NitroNumber.tsx +57 -7
- package/src/NumberFormat.ts +563 -0
- package/src/formatProps.ts +59 -0
- package/src/index.ts +18 -0
- package/src/specs/NitroInput.nitro.ts +10 -0
- package/src/specs/NitroNumber.nitro.ts +13 -1
- package/src/specs/NumberFormat.nitro.ts +145 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroNumberFormatPlatformSpec.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.jni.HybridData
|
|
12
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import dalvik.annotation.optimization.FastNative
|
|
14
|
+
import com.margelo.nitro.core.HybridObject
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kotlin class representing the NitroNumberFormatPlatform HybridObject.
|
|
18
|
+
* Implement this abstract class to create Kotlin-based instances of NitroNumberFormatPlatform.
|
|
19
|
+
*/
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
@Suppress(
|
|
23
|
+
"KotlinJniMissingFunction", "unused",
|
|
24
|
+
"RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet",
|
|
25
|
+
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
26
|
+
)
|
|
27
|
+
abstract class HybridNitroNumberFormatPlatformSpec: HybridObject() {
|
|
28
|
+
// Properties
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// Methods
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
abstract fun create(options: NumberFormatPlatformOptions): HybridNitroPlatformNumberFormatterSpec
|
|
35
|
+
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
abstract fun supportedLocalesOf(locales: Array<String>): Array<String>
|
|
39
|
+
|
|
40
|
+
// Default implementation of `HybridObject.toString()`
|
|
41
|
+
override fun toString(): String {
|
|
42
|
+
return "[HybridObject NitroNumberFormatPlatform]"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// C++ backing class
|
|
46
|
+
@DoNotStrip
|
|
47
|
+
@Keep
|
|
48
|
+
protected open class CxxPart(javaPart: HybridNitroNumberFormatPlatformSpec): HybridObject.CxxPart(javaPart) {
|
|
49
|
+
// C++ JHybridNitroNumberFormatPlatformSpec::CxxPart::initHybrid(...)
|
|
50
|
+
@FastNative
|
|
51
|
+
external override fun initHybrid(): HybridData
|
|
52
|
+
}
|
|
53
|
+
override fun createCxxPart(): CxxPart {
|
|
54
|
+
return CxxPart(this)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
companion object {
|
|
58
|
+
protected const val TAG = "HybridNitroNumberFormatPlatformSpec"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt
CHANGED
|
@@ -231,6 +231,42 @@ abstract class HybridNitroNumberViewSpec: HybridView() {
|
|
|
231
231
|
@set:Keep
|
|
232
232
|
abstract var suffixAlign: NitroNumberAffixAlign?
|
|
233
233
|
|
|
234
|
+
@get:DoNotStrip
|
|
235
|
+
@get:Keep
|
|
236
|
+
@set:DoNotStrip
|
|
237
|
+
@set:Keep
|
|
238
|
+
abstract var letterSpacing: Double?
|
|
239
|
+
|
|
240
|
+
@get:DoNotStrip
|
|
241
|
+
@get:Keep
|
|
242
|
+
@set:DoNotStrip
|
|
243
|
+
@set:Keep
|
|
244
|
+
abstract var prefixSpacing: Double?
|
|
245
|
+
|
|
246
|
+
@get:DoNotStrip
|
|
247
|
+
@get:Keep
|
|
248
|
+
@set:DoNotStrip
|
|
249
|
+
@set:Keep
|
|
250
|
+
abstract var suffixSpacing: Double?
|
|
251
|
+
|
|
252
|
+
@get:DoNotStrip
|
|
253
|
+
@get:Keep
|
|
254
|
+
@set:DoNotStrip
|
|
255
|
+
@set:Keep
|
|
256
|
+
abstract var prefixOffset: Double?
|
|
257
|
+
|
|
258
|
+
@get:DoNotStrip
|
|
259
|
+
@get:Keep
|
|
260
|
+
@set:DoNotStrip
|
|
261
|
+
@set:Keep
|
|
262
|
+
abstract var suffixOffset: Double?
|
|
263
|
+
|
|
264
|
+
@get:DoNotStrip
|
|
265
|
+
@get:Keep
|
|
266
|
+
@set:DoNotStrip
|
|
267
|
+
@set:Keep
|
|
268
|
+
abstract var tabularNums: Boolean?
|
|
269
|
+
|
|
234
270
|
@get:DoNotStrip
|
|
235
271
|
@get:Keep
|
|
236
272
|
@set:DoNotStrip
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroPlatformNumberFormatterSpec.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.jni.HybridData
|
|
12
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import dalvik.annotation.optimization.FastNative
|
|
14
|
+
import com.margelo.nitro.core.HybridObject
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kotlin class representing the NitroPlatformNumberFormatter HybridObject.
|
|
18
|
+
* Implement this abstract class to create Kotlin-based instances of NitroPlatformNumberFormatter.
|
|
19
|
+
*/
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
@Suppress(
|
|
23
|
+
"KotlinJniMissingFunction", "unused",
|
|
24
|
+
"RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet",
|
|
25
|
+
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
26
|
+
)
|
|
27
|
+
abstract class HybridNitroPlatformNumberFormatterSpec: HybridObject() {
|
|
28
|
+
// Properties
|
|
29
|
+
@get:DoNotStrip
|
|
30
|
+
@get:Keep
|
|
31
|
+
abstract val symbols: NumberFormatPlatformSymbols
|
|
32
|
+
|
|
33
|
+
// Methods
|
|
34
|
+
@DoNotStrip
|
|
35
|
+
@Keep
|
|
36
|
+
abstract fun format(value: Double): String
|
|
37
|
+
|
|
38
|
+
@DoNotStrip
|
|
39
|
+
@Keep
|
|
40
|
+
abstract fun formatDecimal(value: String): String
|
|
41
|
+
|
|
42
|
+
// Default implementation of `HybridObject.toString()`
|
|
43
|
+
override fun toString(): String {
|
|
44
|
+
return "[HybridObject NitroPlatformNumberFormatter]"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// C++ backing class
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
50
|
+
protected open class CxxPart(javaPart: HybridNitroPlatformNumberFormatterSpec): HybridObject.CxxPart(javaPart) {
|
|
51
|
+
// C++ JHybridNitroPlatformNumberFormatterSpec::CxxPart::initHybrid(...)
|
|
52
|
+
@FastNative
|
|
53
|
+
external override fun initHybrid(): HybridData
|
|
54
|
+
}
|
|
55
|
+
override fun createCxxPart(): CxxPart {
|
|
56
|
+
return CxxPart(this)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
companion object {
|
|
60
|
+
protected const val TAG = "HybridNitroPlatformNumberFormatterSpec"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCompactDisplay.kt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatCompactDisplay.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatCompactDisplay".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatCompactDisplay(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
SHORT(0),
|
|
20
|
+
LONG(1);
|
|
21
|
+
|
|
22
|
+
companion object
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatCurrencyDisplay.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatCurrencyDisplay".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatCurrencyDisplay(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
SYMBOL(0),
|
|
20
|
+
NARROWSYMBOL(1),
|
|
21
|
+
CODE(2),
|
|
22
|
+
NAME(3);
|
|
23
|
+
|
|
24
|
+
companion object
|
|
25
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencySign.kt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatCurrencySign.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatCurrencySign".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatCurrencySign(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
STANDARD(0),
|
|
20
|
+
ACCOUNTING(1);
|
|
21
|
+
|
|
22
|
+
companion object
|
|
23
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatNotation.kt
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatNotation.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatNotation".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatNotation(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
STANDARD(0),
|
|
20
|
+
SCIENTIFIC(1),
|
|
21
|
+
ENGINEERING(2),
|
|
22
|
+
COMPACT(3);
|
|
23
|
+
|
|
24
|
+
companion object
|
|
25
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatPlatformOptions.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Represents the JavaScript object/struct "NumberFormatPlatformOptions".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class NumberFormatPlatformOptions(
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
val locales: Array<String>,
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val numberingSystem: String?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
29
|
+
val style: NumberFormatStyle,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val currency: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
35
|
+
val currencyDisplay: NumberFormatCurrencyDisplay,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
val currencySign: NumberFormatCurrencySign,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
41
|
+
val unit: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
44
|
+
val unitDisplay: NumberFormatUnitDisplay,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
47
|
+
val notation: NumberFormatNotation,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
50
|
+
val compactDisplay: NumberFormatCompactDisplay,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
53
|
+
val useGrouping: Boolean,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
56
|
+
val minimumIntegerDigits: Double,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
59
|
+
val minimumFractionDigits: Double,
|
|
60
|
+
@DoNotStrip
|
|
61
|
+
@Keep
|
|
62
|
+
val maximumFractionDigits: Double,
|
|
63
|
+
@DoNotStrip
|
|
64
|
+
@Keep
|
|
65
|
+
val minimumSignificantDigits: Double,
|
|
66
|
+
@DoNotStrip
|
|
67
|
+
@Keep
|
|
68
|
+
val maximumSignificantDigits: Double,
|
|
69
|
+
@DoNotStrip
|
|
70
|
+
@Keep
|
|
71
|
+
val roundingMode: NumberFormatRoundingMode,
|
|
72
|
+
@DoNotStrip
|
|
73
|
+
@Keep
|
|
74
|
+
val signDisplay: NumberFormatSignDisplay
|
|
75
|
+
) {
|
|
76
|
+
/* primary constructor */
|
|
77
|
+
|
|
78
|
+
override fun equals(other: Any?): Boolean {
|
|
79
|
+
if (this === other) return true
|
|
80
|
+
if (other !is NumberFormatPlatformOptions) return false
|
|
81
|
+
return Objects.deepEquals(this.locales, other.locales)
|
|
82
|
+
&& Objects.deepEquals(this.numberingSystem, other.numberingSystem)
|
|
83
|
+
&& Objects.deepEquals(this.style, other.style)
|
|
84
|
+
&& Objects.deepEquals(this.currency, other.currency)
|
|
85
|
+
&& Objects.deepEquals(this.currencyDisplay, other.currencyDisplay)
|
|
86
|
+
&& Objects.deepEquals(this.currencySign, other.currencySign)
|
|
87
|
+
&& Objects.deepEquals(this.unit, other.unit)
|
|
88
|
+
&& Objects.deepEquals(this.unitDisplay, other.unitDisplay)
|
|
89
|
+
&& Objects.deepEquals(this.notation, other.notation)
|
|
90
|
+
&& Objects.deepEquals(this.compactDisplay, other.compactDisplay)
|
|
91
|
+
&& Objects.deepEquals(this.useGrouping, other.useGrouping)
|
|
92
|
+
&& Objects.deepEquals(this.minimumIntegerDigits, other.minimumIntegerDigits)
|
|
93
|
+
&& Objects.deepEquals(this.minimumFractionDigits, other.minimumFractionDigits)
|
|
94
|
+
&& Objects.deepEquals(this.maximumFractionDigits, other.maximumFractionDigits)
|
|
95
|
+
&& Objects.deepEquals(this.minimumSignificantDigits, other.minimumSignificantDigits)
|
|
96
|
+
&& Objects.deepEquals(this.maximumSignificantDigits, other.maximumSignificantDigits)
|
|
97
|
+
&& Objects.deepEquals(this.roundingMode, other.roundingMode)
|
|
98
|
+
&& Objects.deepEquals(this.signDisplay, other.signDisplay)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
override fun hashCode(): Int {
|
|
102
|
+
return arrayOf<Any?>(
|
|
103
|
+
locales,
|
|
104
|
+
numberingSystem,
|
|
105
|
+
style,
|
|
106
|
+
currency,
|
|
107
|
+
currencyDisplay,
|
|
108
|
+
currencySign,
|
|
109
|
+
unit,
|
|
110
|
+
unitDisplay,
|
|
111
|
+
notation,
|
|
112
|
+
compactDisplay,
|
|
113
|
+
useGrouping,
|
|
114
|
+
minimumIntegerDigits,
|
|
115
|
+
minimumFractionDigits,
|
|
116
|
+
maximumFractionDigits,
|
|
117
|
+
minimumSignificantDigits,
|
|
118
|
+
maximumSignificantDigits,
|
|
119
|
+
roundingMode,
|
|
120
|
+
signDisplay
|
|
121
|
+
).contentDeepHashCode()
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
companion object {
|
|
125
|
+
/**
|
|
126
|
+
* Constructor called from C++
|
|
127
|
+
*/
|
|
128
|
+
@DoNotStrip
|
|
129
|
+
@Keep
|
|
130
|
+
@Suppress("unused")
|
|
131
|
+
@JvmStatic
|
|
132
|
+
private fun fromCpp(locales: Array<String>, numberingSystem: String?, style: NumberFormatStyle, currency: String?, currencyDisplay: NumberFormatCurrencyDisplay, currencySign: NumberFormatCurrencySign, unit: String?, unitDisplay: NumberFormatUnitDisplay, notation: NumberFormatNotation, compactDisplay: NumberFormatCompactDisplay, useGrouping: Boolean, minimumIntegerDigits: Double, minimumFractionDigits: Double, maximumFractionDigits: Double, minimumSignificantDigits: Double, maximumSignificantDigits: Double, roundingMode: NumberFormatRoundingMode, signDisplay: NumberFormatSignDisplay): NumberFormatPlatformOptions {
|
|
133
|
+
return NumberFormatPlatformOptions(locales, numberingSystem, style, currency, currencyDisplay, currencySign, unit, unitDisplay, notation, compactDisplay, useGrouping, minimumIntegerDigits, minimumFractionDigits, maximumFractionDigits, minimumSignificantDigits, maximumSignificantDigits, roundingMode, signDisplay)
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatPlatformSymbols.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Represents the JavaScript object/struct "NumberFormatPlatformSymbols".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class NumberFormatPlatformSymbols(
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
val locale: String,
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val numberingSystem: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
29
|
+
val minusSign: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val plusSign: String,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
35
|
+
val percentSign: String,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
val currency: String,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
41
|
+
val nan: String,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
44
|
+
val infinity: String,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
47
|
+
val exponentSeparator: String
|
|
48
|
+
) {
|
|
49
|
+
/* primary constructor */
|
|
50
|
+
|
|
51
|
+
override fun equals(other: Any?): Boolean {
|
|
52
|
+
if (this === other) return true
|
|
53
|
+
if (other !is NumberFormatPlatformSymbols) return false
|
|
54
|
+
return Objects.deepEquals(this.locale, other.locale)
|
|
55
|
+
&& Objects.deepEquals(this.numberingSystem, other.numberingSystem)
|
|
56
|
+
&& Objects.deepEquals(this.minusSign, other.minusSign)
|
|
57
|
+
&& Objects.deepEquals(this.plusSign, other.plusSign)
|
|
58
|
+
&& Objects.deepEquals(this.percentSign, other.percentSign)
|
|
59
|
+
&& Objects.deepEquals(this.currency, other.currency)
|
|
60
|
+
&& Objects.deepEquals(this.nan, other.nan)
|
|
61
|
+
&& Objects.deepEquals(this.infinity, other.infinity)
|
|
62
|
+
&& Objects.deepEquals(this.exponentSeparator, other.exponentSeparator)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
override fun hashCode(): Int {
|
|
66
|
+
return arrayOf<Any?>(
|
|
67
|
+
locale,
|
|
68
|
+
numberingSystem,
|
|
69
|
+
minusSign,
|
|
70
|
+
plusSign,
|
|
71
|
+
percentSign,
|
|
72
|
+
currency,
|
|
73
|
+
nan,
|
|
74
|
+
infinity,
|
|
75
|
+
exponentSeparator
|
|
76
|
+
).contentDeepHashCode()
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
companion object {
|
|
80
|
+
/**
|
|
81
|
+
* Constructor called from C++
|
|
82
|
+
*/
|
|
83
|
+
@DoNotStrip
|
|
84
|
+
@Keep
|
|
85
|
+
@Suppress("unused")
|
|
86
|
+
@JvmStatic
|
|
87
|
+
private fun fromCpp(locale: String, numberingSystem: String, minusSign: String, plusSign: String, percentSign: String, currency: String, nan: String, infinity: String, exponentSeparator: String): NumberFormatPlatformSymbols {
|
|
88
|
+
return NumberFormatPlatformSymbols(locale, numberingSystem, minusSign, plusSign, percentSign, currency, nan, infinity, exponentSeparator)
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatRoundingMode.kt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatRoundingMode.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatRoundingMode".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatRoundingMode(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
CEIL(0),
|
|
20
|
+
FLOOR(1),
|
|
21
|
+
EXPAND(2),
|
|
22
|
+
TRUNC(3),
|
|
23
|
+
HALFCEIL(4),
|
|
24
|
+
HALFFLOOR(5),
|
|
25
|
+
HALFEXPAND(6),
|
|
26
|
+
HALFTRUNC(7),
|
|
27
|
+
HALFEVEN(8);
|
|
28
|
+
|
|
29
|
+
companion object
|
|
30
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatSignDisplay.kt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatSignDisplay.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatSignDisplay".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatSignDisplay(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
AUTO(0),
|
|
20
|
+
ALWAYS(1),
|
|
21
|
+
NEVER(2),
|
|
22
|
+
EXCEPTZERO(3),
|
|
23
|
+
NEGATIVE(4);
|
|
24
|
+
|
|
25
|
+
companion object
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatStyle.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatStyle".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatStyle(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
DECIMAL(0),
|
|
20
|
+
CURRENCY(1),
|
|
21
|
+
PERCENT(2),
|
|
22
|
+
UNIT(3);
|
|
23
|
+
|
|
24
|
+
companion object
|
|
25
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatUnitDisplay.kt
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NumberFormatUnitDisplay.kt
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents the JavaScript enum/union "NumberFormatUnitDisplay".
|
|
15
|
+
*/
|
|
16
|
+
@DoNotStrip
|
|
17
|
+
@Keep
|
|
18
|
+
enum class NumberFormatUnitDisplay(@DoNotStrip @Keep val value: Int) {
|
|
19
|
+
SHORT(0),
|
|
20
|
+
NARROW(1),
|
|
21
|
+
LONG(2);
|
|
22
|
+
|
|
23
|
+
companion object
|
|
24
|
+
}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
// Include C++ implementation defined types
|
|
11
11
|
#include "HybridNitroInputViewSpecSwift.hpp"
|
|
12
|
+
#include "HybridNitroNumberFormatPlatformSpecSwift.hpp"
|
|
12
13
|
#include "HybridNitroNumberViewSpecSwift.hpp"
|
|
14
|
+
#include "HybridNitroPlatformNumberFormatterSpecSwift.hpp"
|
|
13
15
|
#include "NitroInput-Swift-Cxx-Umbrella.hpp"
|
|
14
16
|
#include <NitroModules/NitroDefines.hpp>
|
|
15
17
|
|
|
@@ -102,5 +104,37 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
102
104
|
NitroInput::HybridNitroNumberViewSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
103
105
|
return swiftPart.toUnsafe();
|
|
104
106
|
}
|
|
107
|
+
|
|
108
|
+
// pragma MARK: std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>
|
|
109
|
+
std::shared_ptr<HybridNitroPlatformNumberFormatterSpec> create_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
110
|
+
NitroInput::HybridNitroPlatformNumberFormatterSpec_cxx swiftPart = NitroInput::HybridNitroPlatformNumberFormatterSpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
111
|
+
return std::make_shared<margelo::nitro::nitroinput::HybridNitroPlatformNumberFormatterSpecSwift>(swiftPart);
|
|
112
|
+
}
|
|
113
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_(std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_ cppType) {
|
|
114
|
+
std::shared_ptr<margelo::nitro::nitroinput::HybridNitroPlatformNumberFormatterSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::nitroinput::HybridNitroPlatformNumberFormatterSpecSwift>(cppType);
|
|
115
|
+
#ifdef NITRO_DEBUG
|
|
116
|
+
if (swiftWrapper == nullptr) [[unlikely]] {
|
|
117
|
+
throw std::runtime_error("Class \"HybridNitroPlatformNumberFormatterSpec\" is not implemented in Swift!");
|
|
118
|
+
}
|
|
119
|
+
#endif
|
|
120
|
+
NitroInput::HybridNitroPlatformNumberFormatterSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
121
|
+
return swiftPart.toUnsafe();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// pragma MARK: std::shared_ptr<HybridNitroNumberFormatPlatformSpec>
|
|
125
|
+
std::shared_ptr<HybridNitroNumberFormatPlatformSpec> create_std__shared_ptr_HybridNitroNumberFormatPlatformSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
126
|
+
NitroInput::HybridNitroNumberFormatPlatformSpec_cxx swiftPart = NitroInput::HybridNitroNumberFormatPlatformSpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
127
|
+
return std::make_shared<margelo::nitro::nitroinput::HybridNitroNumberFormatPlatformSpecSwift>(swiftPart);
|
|
128
|
+
}
|
|
129
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroNumberFormatPlatformSpec_(std__shared_ptr_HybridNitroNumberFormatPlatformSpec_ cppType) {
|
|
130
|
+
std::shared_ptr<margelo::nitro::nitroinput::HybridNitroNumberFormatPlatformSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::nitroinput::HybridNitroNumberFormatPlatformSpecSwift>(cppType);
|
|
131
|
+
#ifdef NITRO_DEBUG
|
|
132
|
+
if (swiftWrapper == nullptr) [[unlikely]] {
|
|
133
|
+
throw std::runtime_error("Class \"HybridNitroNumberFormatPlatformSpec\" is not implemented in Swift!");
|
|
134
|
+
}
|
|
135
|
+
#endif
|
|
136
|
+
NitroInput::HybridNitroNumberFormatPlatformSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
137
|
+
return swiftPart.toUnsafe();
|
|
138
|
+
}
|
|
105
139
|
|
|
106
140
|
} // namespace margelo::nitro::nitroinput::bridge::swift
|